Merge pull request #1326 from meshtastic/modem_config

Resync modem_config display with 1.3 protobufs
This commit is contained in:
Thomas Göttgens 2022-03-26 11:15:31 +01:00 committed by GitHub
commit 62337aa4b6
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 = ""; auto mode = "";
if (channels.getPrimary().modem_config == 0) { if (channels.getPrimary().modem_config == 0) {
mode = "ShrtSlow"; mode = "VLongSlow";
} else if (channels.getPrimary().modem_config == 1) { } else if (channels.getPrimary().modem_config == 1) {
mode = "ShrtFast"; mode = "LongSlow";
} else if (channels.getPrimary().modem_config == 2) { } else if (channels.getPrimary().modem_config == 2) {
mode = "MedSlow"; mode = "LongFast";
} else if (channels.getPrimary().modem_config == 3) { } else if (channels.getPrimary().modem_config == 3) {
mode = "MedFast"; mode = "MidSlow";
} else if (channels.getPrimary().modem_config == 4) { } else if (channels.getPrimary().modem_config == 4) {
mode = "LngFast"; mode = "MidFast";
} else if (channels.getPrimary().modem_config == 5) { } else if (channels.getPrimary().modem_config == 5) {
mode = "LngSlow"; mode = "ShortSlow";
} else if (channels.getPrimary().modem_config == 6) { } else if (channels.getPrimary().modem_config == 6) {
mode = "VngSlow"; mode = "ShortFast";
} else { } else {
mode = "Custom"; mode = "Custom";
} }