From 2632d44ec9b4e6310f003a293a891c6c69915b13 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Sun, 21 Nov 2021 21:28:56 +0100 Subject: [PATCH] remove packetPendingRMT from wrong if --- DCCWaveform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DCCWaveform.cpp b/DCCWaveform.cpp index 094e395..91f0a5d 100644 --- a/DCCWaveform.cpp +++ b/DCCWaveform.cpp @@ -302,7 +302,7 @@ void IRAM_ATTR DCCWaveform::interrupt2() { // Wait until there is no packet pending, then make this pending void DCCWaveform::schedulePacket(const byte buffer[], byte byteCount, byte repeats) { if (byteCount > MAX_PACKET_SIZE) return; // allow for chksum - while (packetPending||packetPendingRMT); + while (packetPending); portENTER_CRITICAL(&timerMux); byte checksum = 0; for (byte b = 0; b < byteCount; b++) {