mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-23 08:06:13 +01:00
ACK RETRY is 3 or less (default is 1)
This commit is contained in:
parent
08350b215a
commit
f58ebac670
|
@ -775,6 +775,7 @@ bool DCCEXParser::parseD(Print *stream, int16_t params, int16_t p[])
|
||||||
DCCWaveform::progTrack.setMaxAckPulseDuration(p[2]);
|
DCCWaveform::progTrack.setMaxAckPulseDuration(p[2]);
|
||||||
StringFormatter::lcd(0, F("Ack Max=%dus"), p[2]); // <D ACK MAX 9000>
|
StringFormatter::lcd(0, F("Ack Max=%dus"), p[2]); // <D ACK MAX 9000>
|
||||||
} else if (p[1] == HASH_KEYWORD_RETRY) {
|
} else if (p[1] == HASH_KEYWORD_RETRY) {
|
||||||
|
if (p[2] >3) p[2]=3;
|
||||||
DCC::setAckRetry(p[2]);
|
DCC::setAckRetry(p[2]);
|
||||||
StringFormatter::lcd(0, F("Ack Retry=%d"), p[2]); // <D ACK RETRY 2>
|
StringFormatter::lcd(0, F("Ack Retry=%d"), p[2]); // <D ACK RETRY 2>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user