From 7c30a3d8e9637cb80d4852d85fe4b6f1ad3adcb2 Mon Sep 17 00:00:00 2001 From: Morgan Diepart Date: Sun, 31 Mar 2024 21:30:37 +0200 Subject: [PATCH] fixup! Added BB soft potentiometer detection --- openrtx/src/ui/module17/ui_menu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openrtx/src/ui/module17/ui_menu.c b/openrtx/src/ui/module17/ui_menu.c index e111a0e3..7c722ea1 100644 --- a/openrtx/src/ui/module17/ui_menu.c +++ b/openrtx/src/ui/module17/ui_menu.c @@ -310,11 +310,15 @@ int _ui_getInfoValueName(char *buf, uint8_t max_len, uint8_t index) #endif break; case 4: // Baseband tuning potentiometers +#ifdef PLATFORM_LINUX + snprintf(buf, max_len, "%s", "Linux"); +#else if(((Mod17_HwInfo_t *)(hwinfo->other))->flags & CONFIG_BASEBAND_SOFTPOT_Msk){ snprintf(buf, max_len, "%s", bbTuningPot[0]); }else{ snprintf(buf, max_len, "%s", bbTuningPot[1]); } +#endif break; } return 0;