From 9a79ea4919a0018c2bb436be6efe1dfc1464cd22 Mon Sep 17 00:00:00 2001 From: "bsongis@gmail.com" Date: Fri, 5 Jul 2013 05:35:46 +0000 Subject: [PATCH] [Taranis] Cosmetics in TRAINER menu --- src/gui/menu_general.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gui/menu_general.cpp b/src/gui/menu_general.cpp index b8ad98d6b..4f7614887 100644 --- a/src/gui/menu_general.cpp +++ b/src/gui/menu_general.cpp @@ -891,6 +891,12 @@ void menuGeneralSdManager(uint8_t event) } #endif +#if LCD_W >= 212 + #define TRAINER_CALIB_POS 12 +#else + #define TRAINER_CALIB_POS 8 +#endif + void menuGeneralTrainer(uint8_t event) { uint8_t y; @@ -947,7 +953,7 @@ void menuGeneralTrainer(uint8_t event) attr = (m_posVert==6) ? blink : 0; lcd_putsAtt(0*FW, 1+7*FH, STR_CAL, attr); for (uint8_t i=0; i<4; i++) { - uint8_t x = (i*8+16)*FW/2; + uint8_t x = (i*TRAINER_CALIB_POS+16)*FW/2; #if defined (PPM_UNIT_PERCENT_PREC1) lcd_outdezAtt(x, 1+7*FH, (g_ppmIns[i]-g_eeGeneral.trainer.calib[i])*2, PREC1); #else