From 12ad7b0d9cc51b23b33d4a5aef3a371ef36afba0 Mon Sep 17 00:00:00 2001 From: 3djc Date: Fri, 8 Dec 2017 11:27:37 +0100 Subject: [PATCH] Reorganize ana display for X7 (#5482) --- radio/src/gui/128x64/radio_diagkeys.cpp | 27 ++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/radio/src/gui/128x64/radio_diagkeys.cpp b/radio/src/gui/128x64/radio_diagkeys.cpp index 254da36c5..33a900502 100644 --- a/radio/src/gui/128x64/radio_diagkeys.cpp +++ b/radio/src/gui/128x64/radio_diagkeys.cpp @@ -2,7 +2,7 @@ * Copyright (C) OpenTX * * Based on code named - * th9x - http://code.google.com/p/th9x + * th9x - http://code.google.com/p/th9x * er9x - http://code.google.com/p/er9x * gruvin9x - http://code.google.com/p/gruvin9x * @@ -51,16 +51,23 @@ void menuRadioDiagKeys(event_t event) if (i < 6) { y = MENU_HEADER_HEIGHT + FH + FH*i; +#if defined(PCBX7) + if (i > 1) { + lcdDrawTextAtIndex(0, y, STR_VKEYS, (5-i), 0); + displayKeyState(5*FW+4, y, KEY_MENU+(5-i)); + } +#else lcdDrawTextAtIndex(0, y, STR_VKEYS, (5-i), 0); displayKeyState(5*FW+2, y, KEY_MENU+(5-i)); +#endif } - + #if defined(PCBTARANIS) if (i < NUM_SWITCHES) { if (SWITCH_EXISTS(i)) { getvalue_t val = getValue(MIXSRC_FIRST_SWITCH+i); getvalue_t sw = ((val < 0) ? 3*i+1 : ((val == 0) ? 3*i+2 : 3*i+3)); - drawSwitch(8*FW, y, sw, 0); + drawSwitch(8*FW+4, y, sw, 0); } } #else @@ -74,12 +81,22 @@ void menuRadioDiagKeys(event_t event) #if defined(ROTARY_ENCODER_NAVIGATION) for (uint8_t i=0; i