mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-22 23:56:13 +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
|
// with interrupts turned off around the critical section
|
||||||
void TrackManager::setDCSignal(int16_t cab, byte speedbyte) {
|
void TrackManager::setDCSignal(int16_t cab, byte speedbyte) {
|
||||||
FOR_EACH_TRACK(t) {
|
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);
|
if (track[t]->getMode()==TRACK_MODE_DC) track[t]->setDCSignal(speedbyte);
|
||||||
else if (track[t]->getMode()==TRACK_MODE_DCX) track[t]->setDCSignal(speedbyte ^ 128);
|
else if (track[t]->getMode()==TRACK_MODE_DCX) track[t]->setDCSignal(speedbyte ^ 128);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,8 @@
|
||||||
|
|
||||||
#include "StringFormatter.h"
|
#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.68 - Rename track mode OFF to NONE
|
||||||
// 4.2.67 - AVR: Pin specific timer register seting
|
// 4.2.67 - AVR: Pin specific timer register seting
|
||||||
// - Protect Uno user from choosing DC(X)
|
// - Protect Uno user from choosing DC(X)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user