We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dceec3 commit 91df1a6Copy full SHA for 91df1a6
DCCACK.cpp
@@ -2,7 +2,7 @@
2
* © 2021 M Steve Todd
3
* © 2021 Mike S
4
* © 2021 Fred Decker
5
- * © 2020-2021 Harald Barth
+ * © 2020-2025 Harald Barth
6
* © 2020-2022 Chris Harlow
7
* All rights reserved.
8
*
@@ -496,7 +496,8 @@ void DCCACK::checkAck(byte sentResetsSincePacket) {
496
}
497
trailingEdgeCounter = 0;
498
499
- if (ackPulseDuration>=minAckPulseDuration && ackPulseDuration<=maxAckPulseDuration) {
+ if (ackPulseDuration>=minAckPulseDuration
500
+ && (ackPulseDuration<=maxAckPulseDuration || maxAckPulseDuration == 0)) {
501
ackCheckDuration=millis()-ackCheckStart;
502
ackDetected=true;
503
ackPending=false;
0 commit comments