Skip to content

Commit 91df1a6

Browse files
committed
Make it possible to turn off the max ack duration check
1 parent 2dceec3 commit 91df1a6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

DCCACK.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* © 2021 M Steve Todd
33
* © 2021 Mike S
44
* © 2021 Fred Decker
5-
* © 2020-2021 Harald Barth
5+
* © 2020-2025 Harald Barth
66
* © 2020-2022 Chris Harlow
77
* All rights reserved.
88
*
@@ -496,7 +496,8 @@ void DCCACK::checkAck(byte sentResetsSincePacket) {
496496
}
497497
trailingEdgeCounter = 0;
498498

499-
if (ackPulseDuration>=minAckPulseDuration && ackPulseDuration<=maxAckPulseDuration) {
499+
if (ackPulseDuration>=minAckPulseDuration
500+
&& (ackPulseDuration<=maxAckPulseDuration || maxAckPulseDuration == 0)) {
500501
ackCheckDuration=millis()-ackCheckStart;
501502
ackDetected=true;
502503
ackPending=false;

0 commit comments

Comments
 (0)