Moved telemetry check to execMixerFrequentActions() to avoid colliding with frames sent by the mixer

This commit is contained in:
Raphael Coeffic
2021-07-20 16:44:18 +02:00
parent 00e4194a70
commit b3747e0523
+4 -4
View File
@@ -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;