mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-26 17:46:14 +01:00
Update DCC.cpp (#165)
lines 906-910 added. avoid wait after write. use 1 PROG
This commit is contained in:
parent
55cce0ef99
commit
04403bbf5e
4
DCC.cpp
4
DCC.cpp
|
@ -904,6 +904,10 @@ void DCC::callback(int value) {
|
||||||
|
|
||||||
switch (callbackState) {
|
switch (callbackState) {
|
||||||
case AFTER_WRITE: // first attempt to callback after a write operation
|
case AFTER_WRITE: // first attempt to callback after a write operation
|
||||||
|
if (!ackManagerRejoin && !DCCWaveform::progTrack.autoPowerOff) {
|
||||||
|
callbackState=READY;
|
||||||
|
break;
|
||||||
|
} // lines 906-910 added. avoid wait after write. use 1 PROG
|
||||||
callbackStart=millis();
|
callbackStart=millis();
|
||||||
callbackState=WAITING_100;
|
callbackState=WAITING_100;
|
||||||
if (Diag::ACK) DIAG(F("Stable 100mS"));
|
if (Diag::ACK) DIAG(F("Stable 100mS"));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user