From 7c94a3c8817d284da2e464c15ee2c7ba41d9a259 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Sat, 1 Aug 2020 15:03:15 +0200 Subject: [PATCH] comments and constant as unsigned --- DCC.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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<