From ec5363abbcc1c0c9594593b4b812d19b66f720b6 Mon Sep 17 00:00:00 2001 From: "maxim.karban@gmail.com" Date: Fri, 13 Apr 2012 13:40:59 +0000 Subject: [PATCH] Inverse switch values starting timers now as well as normal values --- src/open9x.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/open9x.cpp b/src/open9x.cpp index 6c8c6d5f3..57d2f8ff5 100644 --- a/src/open9x.cpp +++ b/src/open9x.cpp @@ -1867,7 +1867,7 @@ void perMain() } else { if (atm<(TMR_VAROFS+MAX_SWITCH)) - sw_toggled[i] = getSwitch((tm>0 ? tm-(TMR_VAROFS-1) : tm+(TMR_VAROFS-1)), 0); // normal switch + sw_toggled[i] = tm>0 ? getSwitch(tm-(TMR_VAROFS-1), 0) : !getSwitch(-tm, 0); // normal switch if (sw_toggled[i]) s_timerVal[i]++; }