mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-23 16:16:13 +01:00
line added sentResetsSincePacket
in DCCWaveform::setPowerMode(POWERMODE mode) -- to pause while power is off due to PROG TRACK POWER OVERLOAD and line added after case BASELINE in DCC.cpp
This commit is contained in:
parent
4dff8a2b50
commit
f8311b8c56
|
@ -114,6 +114,7 @@ void DCCWaveform::setPowerMode(POWERMODE mode) {
|
||||||
powerMode = mode;
|
powerMode = mode;
|
||||||
bool ison = (mode == POWERMODE::ON);
|
bool ison = (mode == POWERMODE::ON);
|
||||||
motorDriver->setPower( ison);
|
motorDriver->setPower( ison);
|
||||||
|
sentResetsSincePacket=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user