From f2be3aeac325a9ffbacf700c8b444d2693d2bdf5 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Fri, 4 Aug 2023 14:45:05 +0200 Subject: [PATCH] Make work in DC mode --- GITHUB_SHA.h | 2 +- TrackManager.cpp | 2 +- version.h | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/GITHUB_SHA.h b/GITHUB_SHA.h index 77a75c5..a889ba7 100644 --- a/GITHUB_SHA.h +++ b/GITHUB_SHA.h @@ -1 +1 @@ -#define GITHUB_SHA "devel-202308020800Z" +#define GITHUB_SHA "devel-202308041244Z" diff --git a/TrackManager.cpp b/TrackManager.cpp index db5b6b9..0f69235 100644 --- a/TrackManager.cpp +++ b/TrackManager.cpp @@ -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); } diff --git a/version.h b/version.h index 465f684..eb2d068 100644 --- a/version.h +++ b/version.h @@ -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)