Place adcRead() back to mixer task to avoid issues with heartbeat triggered modules
Resolves #166
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user