Stick loop should be called per 1ms.

This commit is contained in:
Richard Li
2021-06-30 17:18:14 +08:00
parent 2222ee75e8
commit 88cbc53786
+2 -3
View File
@@ -83,12 +83,11 @@ void interrupt1ms()
DEBUG_TIMER_STOP(debugTimerHaptic); DEBUG_TIMER_STOP(debugTimerHaptic);
} }
#endif #endif
if (pre_scale == 10) {
pre_scale = 0;
#if !defined(SIMU) #if !defined(SIMU)
if (boardState == BOARD_STARTED) flysky_hall_stick_loop(); if (boardState == BOARD_STARTED) flysky_hall_stick_loop();
#endif #endif
if (pre_scale == 10) {
pre_scale = 0;
DEBUG_TIMER_START(debugTimerPer10ms); DEBUG_TIMER_START(debugTimerPer10ms);
DEBUG_TIMER_SAMPLE(debugTimerPer10msPeriod); DEBUG_TIMER_SAMPLE(debugTimerPer10msPeriod);
per10ms(); per10ms();