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

fix initial fn strings, return value of F16-F28 (#132)

* Committing a SHA

* fix initial fn strings, return value of F16-F28
This commit is contained in:
mstevetodd
2021-03-08 21:46:08 -05:00
committed by GitHub
parent 5f34fc396a
commit 79a318b455
2 changed files with 3 additions and 3 deletions

View File

@@ -155,9 +155,9 @@ int DCC::changeFn( int cab, byte functionNumber, bool pressed) {
} else {
// toggle function on press, ignore release
if (pressed) {
speedTable[reg].functions ^= funcmask;
speedTable[reg].functions ^= funcmask;
}
funcstate = speedTable[reg].functions & funcmask;
funcstate = (speedTable[reg].functions & funcmask)? 1 : 0;
}
updateGroupflags(speedTable[reg].groupFlags, functionNumber);
return funcstate;