From c86123632cf30f79695b8fafd0eadc6038a40d30 Mon Sep 17 00:00:00 2001 From: openfsguruh Date: Thu, 30 Jan 2014 21:01:12 +0100 Subject: [PATCH] bugfix switch warning for stock switch warnings in menu didn't tie up with the warning screen. Now inside firmware the settings fit and working properly for stock. --- radio/src/opentx.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index 6ef8af4ad..f8e8790de 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -2216,10 +2216,13 @@ void checkSwitches() } } #else - for (uint8_t i=0; i2?(i+1):1+((states>>1)&0x3)), attr); + if(!(nSwWarn & (1<<(i-1)))) putsSwitches(x, 5*FH, (i>2?(i+1):1+(states&0x3)), attr); if (i == 1 && attr) i++; if (i != 1) x += 3*FW+FW/2; }