Place adcRead() back to mixer task to avoid issues with heartbeat triggered modules

Resolves #166
This commit is contained in:
Raphael Coeffic
2021-06-09 14:26:46 +02:00
parent bb7262ba99
commit f7d36cd695
2 changed files with 4 additions and 5 deletions
+4
View File
@@ -1091,6 +1091,10 @@ void getADC()
}
#endif
DEBUG_TIMER_START(debugTimerAdcRead);
adcRead();
DEBUG_TIMER_STOP(debugTimerAdcRead);
for (uint8_t x=0; x<NUM_ANALOGS; x++) {
uint16_t v;
@@ -74,11 +74,6 @@ extern "C" void MIXER_SCHEDULER_TIMER_IRQHandler(void)
// set next period
MIXER_SCHEDULER_TIMER->ARR = 2 * getMixerSchedulerPeriod() - 1;
//read ADCs
DEBUG_TIMER_START(debugTimerAdcRead);
adcRead();
DEBUG_TIMER_STOP(debugTimerAdcRead);
// trigger mixer start
mixerSchedulerISRTrigger();
}