mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-28 10:42:08 +00:00
Identify the mode on the screen with the radio conf #986
This commit is contained in:
parent
4fb5107298
commit
1ed3195194
@ -1310,7 +1310,24 @@ void DebugInfo::drawFrameSettings(OLEDDisplay *display, OLEDDisplayUiState *stat
|
|||||||
display->drawString(x, y, String("USB"));
|
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);
|
display->drawString(x + SCREEN_WIDTH - display->getStringWidth(mode), y, mode);
|
||||||
|
|
||||||
// Line 2
|
// Line 2
|
||||||
|
Loading…
Reference in New Issue
Block a user