Add M17 radio mode to UI

replace/171bce605fc4e7ffcc18d9456840e5dda378124a
Federico Amedeo Izzo 2021-08-23 22:05:13 +02:00 zatwierdzone przez Silvano Seva
rodzic c23eaf8e98
commit c04ceb9a8d
3 zmienionych plików z 17 dodań i 0 usunięć

Wyświetl plik

@ -676,9 +676,12 @@ void _ui_fsm_menuMacro(kbd_msg_t msg, bool *sync_rtx) {
*sync_rtx = true;
break;
case 5:
// Cycle through radio modes
if(state.channel.mode == FM)
state.channel.mode = DMR;
else if(state.channel.mode == DMR)
state.channel.mode = M17;
else if(state.channel.mode == M17)
state.channel.mode = FM;
*sync_rtx = true;
break;

Wyświetl plik

@ -63,6 +63,10 @@ void _ui_drawMainTop()
gfx_print(layout.top_pos, layout.top_font, TEXT_ALIGN_LEFT,
color_white, "DMR");
break;
case M17:
gfx_print(layout.top_pos, layout.top_font, TEXT_ALIGN_LEFT,
color_white, "M17");
break;
}
}
@ -171,6 +175,13 @@ void _ui_drawMainBottom()
rssi,
255);
break;
case M17:
gfx_drawSmeterLevel(meter_pos,
meter_width,
meter_height,
rssi,
255);
break;
}
}

Wyświetl plik

@ -604,6 +604,9 @@ bool _ui_drawMacroMenu() {
case DMR:
snprintf(mode_str, 9," DMR");
break;
case M17:
snprintf(mode_str, 9," M17");
break;
}
gfx_print(pos_2, layout.top_font, TEXT_ALIGN_CENTER,
color_white, mode_str);