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)
|
||||
bluetooth.wakeup();
|
||||
#endif
|
||||
|
||||
DEBUG_TIMER_START(debugTimerTelemetryWakeup);
|
||||
telemetryWakeup();
|
||||
DEBUG_TIMER_STOP(debugTimerTelemetryWakeup);
|
||||
}
|
||||
|
||||
uint32_t nextMixerTime[NUM_MODULES];
|
||||
@@ -212,10 +216,6 @@ TASK_FUNCTION(mixerTask)
|
||||
usbJoystickUpdate();
|
||||
#endif
|
||||
|
||||
DEBUG_TIMER_START(debugTimerTelemetryWakeup);
|
||||
telemetryWakeup();
|
||||
DEBUG_TIMER_STOP(debugTimerTelemetryWakeup);
|
||||
|
||||
if (heartbeat == HEART_WDT_CHECK) {
|
||||
WDG_RESET();
|
||||
heartbeat = 0;
|
||||
|
||||
Reference in New Issue
Block a user