mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-25 21:41:23 +01:00
unknown locos should have speed forward
This commit is contained in:
parent
c87a80928b
commit
a109ba4e01
2
DCC.cpp
2
DCC.cpp
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user