* Re #3827: added mutex to getADC(), because adcRead() is not reentrant * Re #3827: alternative solution to prevent calling getADC() from different threads, because adcRead() is not reentrant * Cosmetics
This commit is contained in:
committed by
Bertrand Songis
parent
1e4470a007
commit
2dd8b8702f
@@ -847,6 +847,11 @@ void checkAll();
|
||||
|
||||
#if !defined(SIMU)
|
||||
void getADC();
|
||||
#if defined(CPUARM)
|
||||
#define GET_ADC_IF_MIXER_NOT_RUNNING() do { if (s_pulses_paused) getADC(); } while(0)
|
||||
#else
|
||||
#define GET_ADC_IF_MIXER_NOT_RUNNING() getADC()
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(SBUS)
|
||||
|
||||
Reference in New Issue
Block a user