From 8703248c49a831a0a9d7d1b897550f646ff72f2a Mon Sep 17 00:00:00 2001 From: Ash-4 <81280775+Ash-4@users.noreply.github.com> Date: Sun, 22 Aug 2021 16:47:38 -0500 Subject: [PATCH] ACK RETRY max 255 with fallback to 3 if greater And includes LCD lines for power and ACK diags. --- DCCEXParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DCCEXParser.cpp b/DCCEXParser.cpp index bcdd5d8..eff338d 100644 --- a/DCCEXParser.cpp +++ b/DCCEXParser.cpp @@ -775,7 +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; + if (p[2] >255) p[2]=3; DCC::setAckRetry(p[2]); StringFormatter::lcd(0, F("Ack Retry=%d"), p[2]); // }