From f58ebac6703e36afb20290d75a12c285101f09ca Mon Sep 17 00:00:00 2001 From: Ash-4 <81280775+Ash-4@users.noreply.github.com> Date: Sat, 21 Aug 2021 16:43:21 -0500 Subject: [PATCH] ACK RETRY is 3 or less (default is 1) --- DCCEXParser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/DCCEXParser.cpp b/DCCEXParser.cpp index 967e554..bcdd5d8 100644 --- a/DCCEXParser.cpp +++ b/DCCEXParser.cpp @@ -775,6 +775,7 @@ bool DCCEXParser::parseD(Print *stream, int16_t params, int16_t p[]) DCCWaveform::progTrack.setMaxAckPulseDuration(p[2]); StringFormatter::lcd(0, F("Ack Max=%dus"), p[2]); // } else if (p[1] == HASH_KEYWORD_RETRY) { + if (p[2] >3) p[2]=3; DCC::setAckRetry(p[2]); StringFormatter::lcd(0, F("Ack Retry=%d"), p[2]); // }