mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-18 22:29:50 +03:00
.
This commit is contained in:
10
app/main.c
10
app/main.c
@ -281,6 +281,10 @@ void processFKeyFunction(const key_code_t Key)
|
||||
|
||||
g_request_display_screen = DISPLAY_MAIN;
|
||||
|
||||
#ifdef ENABLE_PANADAPTER
|
||||
PAN_restart(true);
|
||||
#endif
|
||||
|
||||
break;
|
||||
|
||||
case KEY_2: // A/B
|
||||
@ -1108,7 +1112,7 @@ void MAIN_Key_UP_DOWN(bool key_pressed, bool key_held, scan_state_dir_t directio
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_PANADAPTER
|
||||
g_panadapter_vfo_tick = 20; // 200ms
|
||||
PAN_restart(false);
|
||||
#endif
|
||||
|
||||
BK4819_set_rf_frequency(freq, true); // set the VCO/PLL
|
||||
@ -1126,6 +1130,10 @@ void MAIN_Key_UP_DOWN(bool key_pressed, bool key_held, scan_state_dir_t directio
|
||||
|
||||
g_tx_vfo->freq_in_channel = 0xff;
|
||||
|
||||
#ifdef ENABLE_PANADAPTER
|
||||
PAN_restart(true);
|
||||
#endif
|
||||
|
||||
Next = RADIO_FindNextChannel(Channel + direction, direction, false, 0);
|
||||
if (Next == 0xFF)
|
||||
return;
|
||||
|
Reference in New Issue
Block a user