mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-23 04:41:24 +01:00
Make <!> work in DC mode
This commit is contained in:
parent
a74d85e895
commit
f2be3aeac3
@ -1 +1 @@
|
||||
#define GITHUB_SHA "devel-202308020800Z"
|
||||
#define GITHUB_SHA "devel-202308041244Z"
|
||||
|
@ -182,7 +182,7 @@ void TrackManager::setPROGSignal( bool on) {
|
||||
// with interrupts turned off around the critical section
|
||||
void TrackManager::setDCSignal(int16_t cab, byte speedbyte) {
|
||||
FOR_EACH_TRACK(t) {
|
||||
if (trackDCAddr[t]!=cab) continue;
|
||||
if (trackDCAddr[t]!=cab && cab != 0) continue;
|
||||
if (track[t]->getMode()==TRACK_MODE_DC) track[t]->setDCSignal(speedbyte);
|
||||
else if (track[t]->getMode()==TRACK_MODE_DCX) track[t]->setDCSignal(speedbyte ^ 128);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user