fixup! Added BB soft potentiometer detection

pull/264/head
Morgan Diepart 2024-03-31 21:30:37 +02:00 zatwierdzone przez silseva
rodzic 2f1ca3dbe7
commit 7c30a3d8e9
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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;