From 6a7e206032b7f056c1d11131b5ed40cc91def61b Mon Sep 17 00:00:00 2001 From: Alex Shepherd Date: Mon, 5 Aug 2019 21:30:39 +1200 Subject: [PATCH] reverted changes around lastMicros --- NmraDcc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NmraDcc.cpp b/NmraDcc.cpp index fa2561a..4034f53 100644 --- a/NmraDcc.cpp +++ b/NmraDcc.cpp @@ -342,9 +342,9 @@ void ExternalInterruptHandler(void) // Bit evaluation without Timer 0 ------------------------------ uint8_t DccBitVal; static int8_t bit1, bit2 ; - static unsigned long lastMicros = 0; + static word lastMicros = 0; static byte halfBit, DCC_IrqRunning; - unsigned long actMicros, bitMicros; + unsigned int actMicros, bitMicros; if ( DCC_IrqRunning ) { // nested DCC IRQ - obviously there are glitches // ignore this interrupt and increment glitchcounter