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

Correct functionmap length

And remove withrottle replies that would be generated by the broadcast.
This commit is contained in:
Asbelos
2021-12-15 20:53:55 +00:00
parent 4d809b85b3
commit 0947467bfa
4 changed files with 26 additions and 24 deletions

View File

@@ -248,7 +248,7 @@ void DCC::updateGroupflags(byte & flags, int16_t functionNumber) {
flags |= groupMask;
}
uint16_t DCC::getFunctionMap(int cab) {
uint32_t DCC::getFunctionMap(int cab) {
if (cab<=0) return 0; // unknown pretend all functions off
int reg = lookupSpeedTable(cab);
return (reg<0)?0:speedTable[reg].functions;