1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-25 13:41:23 +01:00

unknown locos should have speed forward

This commit is contained in:
Harald Barth 2021-10-31 22:17:51 +01:00
parent 250c372f5c
commit e3cbaf5f24

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