Identify the mode on the screen with the radio conf #986

1.2-legacy
Jm Casler 2021-12-11 19:36:58 -08:00
rodzic 4fb5107298
commit 1ed3195194
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 = "ShSlow";
} else if (channels.getPrimary().modem_config == 1) {
mode = "ShFast";
} 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