mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-19 06:39:49 +03:00
.
This commit is contained in:
11
ui/main.c
11
ui/main.c
@ -858,13 +858,10 @@ void UI_DisplayMain(void)
|
||||
str[0] = '\0';
|
||||
if (g_vfo_info[vfo_num].channel.mod_mode != MOD_MODE_FM)
|
||||
{ // show the modulation mode
|
||||
switch (g_vfo_info[vfo_num].channel.mod_mode)
|
||||
{
|
||||
//case MOD_MODE_FM: strcpy(str, "FM"); break;
|
||||
case MOD_MODE_AM: strcpy(str, "AM"); break;
|
||||
case MOD_MODE_DSB: strcpy(str, "DS"); break;
|
||||
default: strcpy(str, "??"); break;
|
||||
}
|
||||
const char *mode_list[] = {"FM", "AM", "SB", "??"};
|
||||
const unsigned int mode = g_vfo_info[vfo_num].channel.mod_mode;
|
||||
if (mode < ARRAY_SIZE(mode_list))
|
||||
strcpy(str, mode_list[mode]);
|
||||
}
|
||||
else
|
||||
{ // or show the CTCSS/DCS symbol (when in FM mode)
|
||||
|
Reference in New Issue
Block a user