Moved telemetry check to execMixerFrequentActions() to avoid colliding with frames sent by the mixer
This commit is contained in:
+4
-4
@@ -127,6 +127,10 @@ void execMixerFrequentActions()
|
|||||||
#if defined(BLUETOOTH)
|
#if defined(BLUETOOTH)
|
||||||
bluetooth.wakeup();
|
bluetooth.wakeup();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
DEBUG_TIMER_START(debugTimerTelemetryWakeup);
|
||||||
|
telemetryWakeup();
|
||||||
|
DEBUG_TIMER_STOP(debugTimerTelemetryWakeup);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t nextMixerTime[NUM_MODULES];
|
uint32_t nextMixerTime[NUM_MODULES];
|
||||||
@@ -212,10 +216,6 @@ TASK_FUNCTION(mixerTask)
|
|||||||
usbJoystickUpdate();
|
usbJoystickUpdate();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DEBUG_TIMER_START(debugTimerTelemetryWakeup);
|
|
||||||
telemetryWakeup();
|
|
||||||
DEBUG_TIMER_STOP(debugTimerTelemetryWakeup);
|
|
||||||
|
|
||||||
if (heartbeat == HEART_WDT_CHECK) {
|
if (heartbeat == HEART_WDT_CHECK) {
|
||||||
WDG_RESET();
|
WDG_RESET();
|
||||||
heartbeat = 0;
|
heartbeat = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user