From a109ba4e019001c8ff297403c5c91bdd03600188 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Sun, 31 Oct 2021 23:35:28 +0100 Subject: [PATCH] unknown locos should have speed forward --- DCC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DCC.cpp b/DCC.cpp index 286e7c3..ee1918d 100644 --- a/DCC.cpp +++ b/DCC.cpp @@ -137,7 +137,7 @@ uint8_t DCC::getThrottleSpeed(int cab) { bool DCC::getThrottleDirection(int cab) { int reg=lookupSpeedTable(cab); - if (reg<0) return false ; + if (reg<0) return true; return (speedTable[reg].speedCode & 0x80) !=0; }