kopia lustrzana https://github.com/OpenRTX/OpenRTX
UI: Replace GPS with MODE selection on macro menu
rodzic
5311183c8a
commit
f61c269270
|
@ -514,6 +514,13 @@ void _ui_fsm_menuMacro(kbd_msg_t msg, bool *sync_rtx) {
|
|||
state.channel.bandwidth %= 3;
|
||||
*sync_rtx = true;
|
||||
break;
|
||||
case 5:
|
||||
if(state.channel.mode == FM)
|
||||
state.channel.mode = DMR;
|
||||
else if(state.channel.mode == DMR)
|
||||
state.channel.mode = FM;
|
||||
*sync_rtx = true;
|
||||
break;
|
||||
case 7:
|
||||
new_blight += 25;
|
||||
new_blight = (new_blight > 255) ? 255 : new_blight;
|
||||
|
|
|
@ -275,7 +275,17 @@ bool _ui_drawMenuMacro(state_t* last_state) {
|
|||
color_white);
|
||||
gfx_print(layout.line2_left, "5 ", layout.top_font, TEXT_ALIGN_CENTER,
|
||||
yellow_fab413);
|
||||
gfx_print(layout.line2_left, " GPS", layout.top_font, TEXT_ALIGN_CENTER,
|
||||
char mode_str[9] = "";
|
||||
switch(last_state->channel.mode)
|
||||
{
|
||||
case FM:
|
||||
snprintf(mode_str, 9," FM");
|
||||
break;
|
||||
case DMR:
|
||||
snprintf(mode_str, 9," DMR");
|
||||
break;
|
||||
}
|
||||
gfx_print(layout.line2_left, mode_str, layout.top_font, TEXT_ALIGN_CENTER,
|
||||
color_white);
|
||||
gfx_print(layout.line2_right, "6 ", layout.top_font, TEXT_ALIGN_RIGHT,
|
||||
yellow_fab413);
|
||||
|
|
Ładowanie…
Reference in New Issue