mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-04-26 23:11:19 +02:00
unknown locos should have speed forward
This commit is contained in:
parent
250c372f5c
commit
e3cbaf5f24
2
DCC.cpp
2
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user