1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-25 05:31:24 +01:00

unknown locos should have speed forward

This commit is contained in:
Harald Barth 2021-10-31 23:35:28 +01:00
parent c87a80928b
commit a109ba4e01

View File

@ -137,7 +137,7 @@ uint8_t DCC::getThrottleSpeed(int cab) {
bool DCC::getThrottleDirection(int cab) { bool DCC::getThrottleDirection(int cab) {
int reg=lookupSpeedTable(cab); int reg=lookupSpeedTable(cab);
if (reg<0) return false ; if (reg<0) return true;
return (speedTable[reg].speedCode & 0x80) !=0; return (speedTable[reg].speedCode & 0x80) !=0;
} }