diff --git a/DCC.cpp b/DCC.cpp index 8b70e5d..6d47188 100644 --- a/DCC.cpp +++ b/DCC.cpp @@ -95,6 +95,7 @@ bool DCC::getThrottleDirection(int cab) { return (speedTable[reg].speedCode & 0x80) !=0; } +// Set function to value on or off void DCC::setFn( int cab, byte functionNumber, bool on) { if (cab<=0 || functionNumber>28) return; int reg = lookupSpeedTable(cab); @@ -102,13 +103,12 @@ void DCC::setFn( int cab, byte functionNumber, bool on) { // Take care of functions: // Set state of function - unsigned long funcmask = (1L<