0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-04-28 14:21:25 +03:00

panadapter update

This commit is contained in:
OneOfEleven 2023-11-19 20:28:56 +00:00
parent e54650e651
commit 9b911822d1
4 changed files with 10 additions and 2 deletions

View File

@ -360,6 +360,14 @@ void processFKeyFunction(const key_code_t Key)
case KEY_5: // NOAA
#ifdef ENABLE_PANADAPTER
if (g_fkey_pressed)
{
g_eeprom.config.setting.panadapter = (g_eeprom.config.setting.panadapter + 1) & 1u;
break;
}
#endif
#ifdef ENABLE_NOAA
APP_stop_scan();

Binary file not shown.

Binary file not shown.

View File

@ -135,8 +135,8 @@ void PAN_process_10ms(void)
panadapter_rssi_index = 0;
if (g_tx_vfo->channel.mod_mode == MOD_MODE_FM)
{ // switch back to the VFO frequency for 100ms once every 500ms
g_panadapter_vfo_mode = ((panadapter_rssi_index % 50) == 0) ? 10 : 0;
{ // switch back to the VFO frequency for 100ms once every 400ms
g_panadapter_vfo_mode = ((panadapter_rssi_index % 40) == 0) ? 10 : 0;
}
else
{ // switch back to the VFO frequency for 100ms once each scan cycle