1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-07-28 18:03:45 +02:00

Make return type of DCC::getFn int8_t

This commit is contained in:
Harald Barth
2024-01-01 22:08:59 +01:00
parent 3ce9d2ec88
commit d899da5898
3 changed files with 3 additions and 3 deletions

View File

@@ -238,7 +238,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
int DCC::getFn( int cab, int16_t functionNumber) {
int8_t DCC::getFn( int cab, int16_t functionNumber) {
if (cab<=0 || functionNumber>28)
return -1; // unknown
int reg = lookupSpeedTable(cab);