1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-07-28 09:53:45 +02:00

make DC mode portable to ESP32

This commit is contained in:
Harald Barth
2022-08-10 00:14:28 +02:00
parent e1fd6e9414
commit c1993fba87
3 changed files with 15 additions and 4 deletions

View File

@@ -170,7 +170,7 @@ bool TrackManager::setTrackMode(byte trackToSet, TRACK_MODE mode, int16_t dcAddr
else {
// DCC tracks need to have set the PWM to zero or they will not work.
// 128 is speed=0 and dir=0 and then loosen brake.
track[trackToSet]->setDCSignal(128);
track[trackToSet]->detachDCSignal();
track[trackToSet]->setBrake(false);
}