Add M17 radio mode to UI
This commit is contained in:
parent
c23eaf8e98
commit
c04ceb9a8d
|
|
@ -676,9 +676,12 @@ void _ui_fsm_menuMacro(kbd_msg_t msg, bool *sync_rtx) {
|
||||||
*sync_rtx = true;
|
*sync_rtx = true;
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
|
// Cycle through radio modes
|
||||||
if(state.channel.mode == FM)
|
if(state.channel.mode == FM)
|
||||||
state.channel.mode = DMR;
|
state.channel.mode = DMR;
|
||||||
else if(state.channel.mode == DMR)
|
else if(state.channel.mode == DMR)
|
||||||
|
state.channel.mode = M17;
|
||||||
|
else if(state.channel.mode == M17)
|
||||||
state.channel.mode = FM;
|
state.channel.mode = FM;
|
||||||
*sync_rtx = true;
|
*sync_rtx = true;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,10 @@ void _ui_drawMainTop()
|
||||||
gfx_print(layout.top_pos, layout.top_font, TEXT_ALIGN_LEFT,
|
gfx_print(layout.top_pos, layout.top_font, TEXT_ALIGN_LEFT,
|
||||||
color_white, "DMR");
|
color_white, "DMR");
|
||||||
break;
|
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,
|
rssi,
|
||||||
255);
|
255);
|
||||||
break;
|
break;
|
||||||
|
case M17:
|
||||||
|
gfx_drawSmeterLevel(meter_pos,
|
||||||
|
meter_width,
|
||||||
|
meter_height,
|
||||||
|
rssi,
|
||||||
|
255);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -604,6 +604,9 @@ bool _ui_drawMacroMenu() {
|
||||||
case DMR:
|
case DMR:
|
||||||
snprintf(mode_str, 9," DMR");
|
snprintf(mode_str, 9," DMR");
|
||||||
break;
|
break;
|
||||||
|
case M17:
|
||||||
|
snprintf(mode_str, 9," M17");
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
gfx_print(pos_2, layout.top_font, TEXT_ALIGN_CENTER,
|
gfx_print(pos_2, layout.top_font, TEXT_ALIGN_CENTER,
|
||||||
color_white, mode_str);
|
color_white, mode_str);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue