0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-05-18 16:01:18 +03:00

single VFO mode update

This commit is contained in:
OneOfEleven 2023-11-30 08:40:34 +00:00
parent b49e464b7e
commit 854b4c98b7
4 changed files with 18 additions and 8 deletions

View File

@ -84,10 +84,10 @@ ENABLE_TX_AUDIO_BAR := 0
ENABLE_SIDE_BUTT_MENU := 0
# Key Lock 400 B
ENABLE_KEYLOCK := 0
ENABLE_PANADAPTER := 1
ENABLE_PANADAPTER := 0
ENABLE_PANADAPTER_PEAK_FREQ := 0
# single VFO 1.4 kB
ENABLE_SINGLE_VFO_CHAN := 0
ENABLE_SINGLE_VFO_CHAN := 1
#############################################################

Binary file not shown.

Binary file not shown.

View File

@ -863,7 +863,9 @@ void UI_DisplayMain(void)
single_vfo = -1;
if (g_eeprom.config.setting.dual_watch == DUAL_WATCH_OFF && g_eeprom.config.setting.cross_vfo == CROSS_BAND_OFF)
{
single_vfo = main_vfo_num;
}
else
if (g_eeprom.config.setting.dual_watch != DUAL_WATCH_OFF && g_rx_vfo_is_active)
current_vfo_num = g_rx_vfo_num;
@ -904,12 +906,20 @@ void UI_DisplayMain(void)
#endif
#endif
#ifdef ENABLE_SINGLE_VFO_CHAN
if (single_vfo >= 0 && !pan_enabled)
{
UI_DisplayMainSingle();
return;
}
#if ENABLE_SINGLE_VFO_CHAN
#ifdef ENABLE_PANADAPTER
if (single_vfo >= 0 && !pan_enabled)
{
UI_DisplayMainSingle();
return;
}
#else
if (single_vfo >= 0)
{
UI_DisplayMainSingle();
return;
}
#endif
#endif
for (vfo_num = 0; vfo_num < 2; vfo_num++)