Resync modem_config display with 1.3 protobufs

current as of 20220326
This commit is contained in:
Thomas Göttgens 2022-03-26 10:59:36 +01:00 committed by GitHub
parent 596a889a1e
commit 42ee4e8416
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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