Merge pull request #987 from mc-hamster/display_speed

Identify the mode on the screen with the radio conf #986
1.2-legacy
Jm Casler 2021-12-11 19:49:06 -08:00 zatwierdzone przez GitHub
commit c6292679f5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 18 dodań i 1 usunięć

Wyświetl plik

@ -1310,7 +1310,24 @@ void DebugInfo::drawFrameSettings(OLEDDisplay *display, OLEDDisplayUiState *stat
display->drawString(x, y, String("USB"));
}
auto mode = "Mode " + String(channels.getPrimary().modem_config);
auto mode = "";
if (channels.getPrimary().modem_config == 0) {
mode = "ShrtSlow";
} else if (channels.getPrimary().modem_config == 1) {
mode = "ShrtFast";
} else if (channels.getPrimary().modem_config == 2) {
mode = "LngFast";
} else if (channels.getPrimary().modem_config == 3) {
mode = "LngSlow";
} else if (channels.getPrimary().modem_config == 4) {
mode = "MedSlow";
} else if (channels.getPrimary().modem_config == 5) {
mode = "MedFast";
} else {
mode = "Custom";
}
display->drawString(x + SCREEN_WIDTH - display->getStringWidth(mode), y, mode);
// Line 2