diff --git a/DCC.cpp b/DCC.cpp index 2ac863d..567e48e 100644 --- a/DCC.cpp +++ b/DCC.cpp @@ -179,15 +179,17 @@ void DCC::setFn( int cab, int16_t functionNumber, bool on) { // Take care of functions: // Set state of function + unsigned long previous=speedTable[reg].functions; unsigned long funcmask = (1UL<