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

unknown locos should have speed forward

This commit is contained in:
Harald Barth 2021-10-31 22:20:59 +01:00
parent b9fed47d24
commit 055bc7bfe2

View File

@ -141,7 +141,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;
}