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

remove more speaker clicks

This commit is contained in:
OneOfEleven 2023-10-18 22:20:53 +01:00
parent e0eddfcfdd
commit 30d5abb1e2
6 changed files with 11 additions and 5 deletions

View File

@ -81,6 +81,7 @@ void ACTION_Monitor(void)
if (g_rx_vfo->channel_save >= NOAA_CHANNEL_FIRST && g_is_noaa_mode)
g_noaa_channel = g_rx_vfo->channel_save - NOAA_CHANNEL_FIRST;
#endif
g_monitor_enabled = true;
RADIO_setup_registers(true);
APP_start_listening(FUNCTION_MONITOR, false);
return;

View File

@ -475,7 +475,11 @@ void MAIN_Key_DIGITS(key_code_t Key, bool key_pressed, bool key_held)
g_tx_vfo->freq_config_rx.frequency = Frequency;
g_request_save_channel = 1;
// 1of11 .. test to prevent the monitor being turned off
// g_request_save_channel = 1;
SETTINGS_SaveChannel(g_tx_vfo->channel_save, g_eeprom.tx_vfo, g_tx_vfo, 1);
RADIO_setup_registers(true);
return;
}
@ -807,7 +811,7 @@ void MAIN_Key_UP_DOWN(bool key_pressed, bool key_held, scan_state_dir_t Directio
#endif
// only update eeprom when the key is released - saves a LOT of wear and tear on the little eeprom
g_flag_save_channel = 1;
SETTINGS_SaveChannel(g_tx_vfo->channel_save, g_eeprom.tx_vfo, g_tx_vfo, 1);
#if defined(ENABLE_UART) && defined(ENABLE_UART_DEBUG)
// UART_printf("save chan\r\n");
@ -876,7 +880,7 @@ void MAIN_Key_UP_DOWN(bool key_pressed, bool key_held, scan_state_dir_t Directio
g_request_save_channel = 1;
}
else
{ // don't need to go through all the other stuff .. lets speed things up !!
{ // don't need to go through all the other stuff .. lets speed things up !
#ifdef ENABLE_SQ_OPEN_WITH_UP_DN_BUTTS
if (!key_held && key_pressed)

View File

@ -753,7 +753,8 @@ void BK4819_set_rf_frequency(const uint32_t frequency, const bool trigger_update
// trigger a PLL/VCO update
//
const uint16_t reg = BK4819_ReadRegister(BK4819_REG_30);
BK4819_WriteRegister(BK4819_REG_30, reg & ~(1u << 15) & (15u << 4));
// BK4819_WriteRegister(BK4819_REG_30, reg & ~(1u << 15) & (15u << 4));
BK4819_WriteRegister(BK4819_REG_30, 0x0200);
BK4819_WriteRegister(BK4819_REG_30, reg);
}
}

Binary file not shown.

Binary file not shown.