mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-18 11:02:16 +00:00
Merge pull request #987 from mc-hamster/display_speed
Identify the mode on the screen with the radio conf #986
This commit is contained in:
commit
c6292679f5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user