mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-04-28 22:31:25 +03:00
.
This commit is contained in:
parent
f724b159c7
commit
2b98faeedf
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
2
main.c
2
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();
|
||||
|
||||
// ***************************
|
||||
|
||||
|
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user