reverted changes around lastMicros

This commit is contained in:
Alex Shepherd
2019-08-05 21:30:39 +12:00
parent 6d12e6cd3f
commit 6a7e206032

View File

@@ -342,9 +342,9 @@ void ExternalInterruptHandler(void)
// Bit evaluation without Timer 0 ------------------------------ // Bit evaluation without Timer 0 ------------------------------
uint8_t DccBitVal; uint8_t DccBitVal;
static int8_t bit1, bit2 ; static int8_t bit1, bit2 ;
static unsigned long lastMicros = 0; static word lastMicros = 0;
static byte halfBit, DCC_IrqRunning; static byte halfBit, DCC_IrqRunning;
unsigned long actMicros, bitMicros; unsigned int actMicros, bitMicros;
if ( DCC_IrqRunning ) { if ( DCC_IrqRunning ) {
// nested DCC IRQ - obviously there are glitches // nested DCC IRQ - obviously there are glitches
// ignore this interrupt and increment glitchcounter // ignore this interrupt and increment glitchcounter