1
0
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:
Harald Barth 2023-08-04 14:45:05 +02:00
parent a74d85e895
commit f2be3aeac3
3 changed files with 4 additions and 3 deletions

View File

@ -1 +1 @@
#define GITHUB_SHA "devel-202308020800Z"
#define GITHUB_SHA "devel-202308041244Z"

View File

@ -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);
}

View File

@ -3,7 +3,8 @@
#include "StringFormatter.h"
#define VERSION "4.2.68"
#define VERSION "4.2.69"
// 4.2.69 - Bugfix: Make <!> work in DC mode
// 4.2.68 - Rename track mode OFF to NONE
// 4.2.67 - AVR: Pin specific timer register seting
// - Protect Uno user from choosing DC(X)