diff --git a/firmware.bin b/firmware.bin index 0e741d9..45f8d10 100644 Binary files a/firmware.bin and b/firmware.bin differ diff --git a/firmware.packed.bin b/firmware.packed.bin index 0cb8584..f9bf021 100644 Binary files a/firmware.packed.bin and b/firmware.packed.bin differ diff --git a/main.c b/main.c index d2ef779..f979319 100644 --- a/main.c +++ b/main.c @@ -175,11 +175,11 @@ void Main(void) UART_Init(); #endif BOARD_ADC_Init(); + BACKLIGHT_init(); ST7565_Init(true); #ifdef ENABLE_FMRADIO BK1080_Init(0, false); #endif - BACKLIGHT_init(); // *************************** diff --git a/ui/main.c b/ui/main.c index 8fc9b4d..62defeb 100644 --- a/ui/main.c +++ b/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)