Merge pull request #1326 from meshtastic/modem_config

Resync modem_config display with 1.3 protobufs
pull/1323/head^2
Thomas Göttgens 2022-03-26 11:15:31 +01:00 zatwierdzone przez GitHub
commit 62337aa4b6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 9 dodań i 9 usunięć

Wyświetl plik

@ -1365,21 +1365,21 @@ void DebugInfo::drawFrameSettings(OLEDDisplay *display, OLEDDisplayUiState *stat
}
auto mode = "";
if (channels.getPrimary().modem_config == 0) {
mode = "ShrtSlow";
if (channels.getPrimary().modem_config == 0) {
mode = "VLongSlow";
} else if (channels.getPrimary().modem_config == 1) {
mode = "ShrtFast";
mode = "LongSlow";
} else if (channels.getPrimary().modem_config == 2) {
mode = "MedSlow";
mode = "LongFast";
} else if (channels.getPrimary().modem_config == 3) {
mode = "MedFast";
mode = "MidSlow";
} else if (channels.getPrimary().modem_config == 4) {
mode = "LngFast";
mode = "MidFast";
} else if (channels.getPrimary().modem_config == 5) {
mode = "LngSlow";
mode = "ShortSlow";
} else if (channels.getPrimary().modem_config == 6) {
mode = "VngSlow";
mode = "ShortFast";
} else {
mode = "Custom";
}