From 4dee6da29ef59f512b5e9bdc8c99a335649f5362 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Tue, 20 Oct 2020 10:55:12 +0200 Subject: [PATCH] make volatile because of interrupt routine and optimzer in PIO --- DCCWaveform.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;