From 3a5b41ae54d40ba1088522f457f7f75f5c0bef8a Mon Sep 17 00:00:00 2001 From: Andre Bernet Date: Sat, 1 Feb 2014 14:55:10 +0100 Subject: [PATCH] Switch warnings on stock again --- radio/src/opentx.cpp | 27 +++++++++++++++++---------- radio/src/translations/en.h | 2 +- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index 18c0b6c21..a46df9b3e 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -2258,12 +2258,15 @@ void checkSwitches() } } #else - uint8_t nSwWarn = g_model.nSwToWarn; - nSwWarn=(nSwWarn<<1)|(nSwWarn&1); // duplicate first bit because states has first two bits for ID, but nSwToWarn has only one - for (uint8_t i=0; i2?(i+1):1+(states&0x3)), attr); - if (i == 1 && attr) i++; - if (i != 1) x += 3*FW+FW/2; + for (uint8_t i=0; i0?(i+3):(switches_states&0x3)+1), attr); + x += 3*FW+FW/2; } #endif lcdRefresh(); diff --git a/radio/src/translations/en.h b/radio/src/translations/en.h index 9d8288b58..040e5ee67 100644 --- a/radio/src/translations/en.h +++ b/radio/src/translations/en.h @@ -485,7 +485,7 @@ #define TR_BLOFFBRIGHTNESS INDENT"OFF Brightness" #define TR_SPLASHSCREEN "Splash screen" #define TR_THROTTLEWARNING TR("T-Warning","Throttle Warning") -#define TR_SWITCHWARNING TR("C-Warning","Control Warning") +#define TR_SWITCHWARNING TR("S-Warning","Switch Warning") #define TR_POTWARNING TR("Pot Warn.","Pot Warning") #define TR_TIMEZONE TR("Time Zone","GPS Time zone") #define TR_RXCHANNELORD TR("Rx Channel Ord","Default channel order")