From b3747e0523571f85b55fbef6ee17d6eed0bd4a78 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Tue, 20 Jul 2021 16:44:18 +0200 Subject: [PATCH] Moved telemetry check to execMixerFrequentActions() to avoid colliding with frames sent by the mixer --- radio/src/tasks.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/radio/src/tasks.cpp b/radio/src/tasks.cpp index 6411827ad..f6c7bbd48 100644 --- a/radio/src/tasks.cpp +++ b/radio/src/tasks.cpp @@ -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;