From 3e8649f9a1333369709ca5391f73b79cc999f216 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Mon, 2 May 2022 22:15:02 +0200 Subject: [PATCH] zero transmit not pending repeats when ack is found --- DCCWaveform.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DCCWaveform.h b/DCCWaveform.h index 667e220..cee39c3 100644 --- a/DCCWaveform.h +++ b/DCCWaveform.h @@ -48,7 +48,7 @@ class DCCWaveform { static void loop(); static DCCWaveform mainTrack; static DCCWaveform progTrack; - void clearRepeats() {pendingRepeats=0;} + inline void clearRepeats() { transmitRepeats=0; } void schedulePacket(const byte buffer[], byte byteCount, byte repeats); volatile bool packetPending; volatile byte sentResetsSincePacket;