Skip to content

Commit c74a348

Browse files
committed
Increase furi timer period to fix application lagging.
FIX: spin7ion#5
1 parent acd77c5 commit c74a348

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
with:
1414
# Set to 'release' to build for latest published release version
1515
sdk-channel: release
16-
app-dir: /servotester
16+
app-dir: servotester
1717
- name: Upload app artifacts
1818
uses: actions/upload-artifact@v4
1919
with:

servotester/servotester.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ int32_t servotester_app(void* p) {
117117
// Timer for automatic mode
118118
FuriTimer* timer =
119119
furi_timer_alloc(servotester_timer_callback, FuriTimerTypePeriodic, event_queue);
120-
furi_timer_start(timer, 5);
120+
furi_timer_start(timer, furi_ms_to_ticks((1000/DEFAULT_FREQ)*1.5)); // does not make sense update PWM faster than pulse interval lenght.
121121

122122
//GPIO init
123123
furi_hal_power_enable_otg(); // Turn 5V

0 commit comments

Comments
 (0)