0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-04-29 23:01:26 +03:00
This commit is contained in:
OneOfEleven 2023-11-10 14:48:50 +00:00
parent f724b159c7
commit 2b98faeedf
4 changed files with 5 additions and 8 deletions

Binary file not shown.

Binary file not shown.

2
main.c
View File

@ -175,11 +175,11 @@ void Main(void)
UART_Init(); UART_Init();
#endif #endif
BOARD_ADC_Init(); BOARD_ADC_Init();
BACKLIGHT_init();
ST7565_Init(true); ST7565_Init(true);
#ifdef ENABLE_FMRADIO #ifdef ENABLE_FMRADIO
BK1080_Init(0, false); BK1080_Init(0, false);
#endif #endif
BACKLIGHT_init();
// *************************** // ***************************

View File

@ -858,13 +858,10 @@ void UI_DisplayMain(void)
str[0] = '\0'; str[0] = '\0';
if (g_vfo_info[vfo_num].channel.mod_mode != MOD_MODE_FM) if (g_vfo_info[vfo_num].channel.mod_mode != MOD_MODE_FM)
{ // show the modulation mode { // show the modulation mode
switch (g_vfo_info[vfo_num].channel.mod_mode) const char *mode_list[] = {"FM", "AM", "SB", "??"};
{ const unsigned int mode = g_vfo_info[vfo_num].channel.mod_mode;
//case MOD_MODE_FM: strcpy(str, "FM"); break; if (mode < ARRAY_SIZE(mode_list))
case MOD_MODE_AM: strcpy(str, "AM"); break; strcpy(str, mode_list[mode]);
case MOD_MODE_DSB: strcpy(str, "DS"); break;
default: strcpy(str, "??"); break;
}
} }
else else
{ // or show the CTCSS/DCS symbol (when in FM mode) { // or show the CTCSS/DCS symbol (when in FM mode)