1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-27 14:21:25 +01:00

ACK RETRY max 255 with fallback to 3 if greater

And includes LCD lines for power and ACK diags.
This commit is contained in:
Ash-4 2021-08-22 16:47:38 -05:00 committed by GitHub
parent f5d4522ed7
commit 8703248c49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]); // <D ACK MAX 9000>
} 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]); // <D ACK RETRY 2>
}