From f7d36cd6951637a3ddec27e44eaeea405b847d91 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Wed, 9 Jun 2021 14:26:46 +0200 Subject: [PATCH] Place adcRead() back to mixer task to avoid issues with heartbeat triggered modules Resolves #166 --- radio/src/opentx.cpp | 4 ++++ .../src/targets/common/arm/stm32/mixer_scheduler_driver.cpp | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index 0453b2517..79ded3d83 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -1091,6 +1091,10 @@ void getADC() } #endif + DEBUG_TIMER_START(debugTimerAdcRead); + adcRead(); + DEBUG_TIMER_STOP(debugTimerAdcRead); + for (uint8_t x=0; xARR = 2 * getMixerSchedulerPeriod() - 1; - //read ADCs - DEBUG_TIMER_START(debugTimerAdcRead); - adcRead(); - DEBUG_TIMER_STOP(debugTimerAdcRead); - // trigger mixer start mixerSchedulerISRTrigger(); }