diff --git a/DCCWaveform.h b/DCCWaveform.h index 507cc3d..32041e6 100644 --- a/DCCWaveform.h +++ b/DCCWaveform.h @@ -118,8 +118,8 @@ class DCCWaveform { unsigned int power_good_counter = 0; // ACK management (Prog track only) - bool ackPending; - bool ackDetected; + volatile bool ackPending; + volatile bool ackDetected; int ackThreshold; int ackLimitmA = 60; int ackMaxCurrent;