mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-23 21:01:25 +01:00
not forget volatile
This commit is contained in:
parent
43191e225e
commit
0a10dbea0b
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user