From 4fb205def7fb6797aac87a58b54223e85574f3ff Mon Sep 17 00:00:00 2001 From: bsongis Date: Sun, 17 Mar 2013 13:26:32 +0000 Subject: [PATCH] [all] Switches Warning bug fixed --- src/open9x.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/open9x.cpp b/src/open9x.cpp index 2161bad8a..70513d278 100644 --- a/src/open9x.cpp +++ b/src/open9x.cpp @@ -1600,9 +1600,9 @@ void checkSwitches() } #else uint8_t x = 2; - for (uint8_t i=1; i<8; i++) { + for (uint8_t i=1; i2?(i+1):1+((states>>4)&0x3)), attr); + putsSwitches(x, 5*FH, (i>2?(i+1):1+((states>>1)&0x3)), attr); if (i == 1 && attr) i++; if (i != 1) x += 3*FW+FW/2; }