mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-07-28 18:03:45 +02:00
Functions for DC frequency: Use func up to F31
This commit is contained in:
2
DCC.cpp
2
DCC.cpp
@@ -242,7 +242,7 @@ void DCC::changeFn( int cab, int16_t functionNumber) {
|
||||
// Report function state (used from withrottle protocol)
|
||||
// returns 0 false, 1 true or -1 for do not know
|
||||
int8_t DCC::getFn( int cab, int16_t functionNumber) {
|
||||
if (cab<=0 || functionNumber>28)
|
||||
if (cab<=0 || functionNumber>31)
|
||||
return -1; // unknown
|
||||
int reg = lookupSpeedTable(cab);
|
||||
if (reg<0)
|
||||
|
Reference in New Issue
Block a user