kopia lustrzana https://github.com/OpenRTX/OpenRTX
Add M17 radio mode to UI
rodzic
c23eaf8e98
commit
c04ceb9a8d
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue