1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-24 13:21:23 +01:00

not forget volatile

This commit is contained in:
Harald Barth 2021-10-04 23:12:47 +02:00
parent 43191e225e
commit 0a10dbea0b

View File

@ -56,7 +56,7 @@ void DCCWaveform::begin(MotorDriver * mainDriver, MotorDriver * progDriver) {
#ifdef SLOW_ANALOG_READ #ifdef SLOW_ANALOG_READ
// Flag to hold if we need to run ack checking in loop // Flag to hold if we need to run ack checking in loop
static bool ackflag = 0; volatile bool ackflag = 0;
#endif #endif
void IRAM_ATTR DCCWaveform::loop(bool ackManagerActive) { void IRAM_ATTR DCCWaveform::loop(bool ackManagerActive) {