From b31c52cb37d15ac6d11687703b1d052c6fac8c33 Mon Sep 17 00:00:00 2001 From: philmoz Date: Thu, 4 Jul 2024 18:43:09 +1000 Subject: [PATCH] fix(bw): incorrect X-Lite navigation selection (#5244) --- radio/src/gui/navigation/navigation.cpp | 2 +- radio/src/opentx.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/radio/src/gui/navigation/navigation.cpp b/radio/src/gui/navigation/navigation.cpp index fd9c78011..3ac90fa86 100644 --- a/radio/src/gui/navigation/navigation.cpp +++ b/radio/src/gui/navigation/navigation.cpp @@ -26,7 +26,7 @@ #elif defined(NAVIGATION_9X) #include "navigation_9x.cpp" #elif defined(NAVIGATION_XLITE) - #include "navigation_xlite" + #include "navigation_xlite.cpp" #elif defined(NAVIGATION_X7) #include "navigation_x7.cpp" #else diff --git a/radio/src/opentx.h b/radio/src/opentx.h index c2a99a9a5..41c51e05b 100644 --- a/radio/src/opentx.h +++ b/radio/src/opentx.h @@ -106,10 +106,10 @@ enum RotaryEncoderMode { // Define navigation type based on available keys #if LCD_W == 212 #define NAVIGATION_X9D -#elif defined(KEYS_GPIO_REG_LEFT) - #define NAVIGATION_9X #elif defined(KEYS_GPIO_REG_SHIFT) #define NAVIGATION_XLITE +#elif defined(KEYS_GPIO_REG_LEFT) + #define NAVIGATION_9X #elif defined(KEYS_GPIO_REG_PAGEUP) && defined(KEYS_GPIO_REG_TELE) #define NAVIGATION_X7 #define NAVIGATION_X7_TX12