1
0
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:
Harald Barth
2024-03-11 14:52:55 +01:00
parent 9aac34b403
commit d753eb43e3
3 changed files with 13 additions and 18 deletions

View File

@@ -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)