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:
parent
e0eddfcfdd
commit
30d5abb1e2
@ -81,6 +81,7 @@ void ACTION_Monitor(void)
|
|||||||
if (g_rx_vfo->channel_save >= NOAA_CHANNEL_FIRST && g_is_noaa_mode)
|
if (g_rx_vfo->channel_save >= NOAA_CHANNEL_FIRST && g_is_noaa_mode)
|
||||||
g_noaa_channel = g_rx_vfo->channel_save - NOAA_CHANNEL_FIRST;
|
g_noaa_channel = g_rx_vfo->channel_save - NOAA_CHANNEL_FIRST;
|
||||||
#endif
|
#endif
|
||||||
|
g_monitor_enabled = true;
|
||||||
RADIO_setup_registers(true);
|
RADIO_setup_registers(true);
|
||||||
APP_start_listening(FUNCTION_MONITOR, false);
|
APP_start_listening(FUNCTION_MONITOR, false);
|
||||||
return;
|
return;
|
||||||
|
@ -2827,7 +2827,7 @@ Skip:
|
|||||||
g_vfo_rssi_bar_level[0] = 0;
|
g_vfo_rssi_bar_level[0] = 0;
|
||||||
g_vfo_rssi_bar_level[1] = 0;
|
g_vfo_rssi_bar_level[1] = 0;
|
||||||
|
|
||||||
g_flag_reconfigure_vfos= false;
|
g_flag_reconfigure_vfos = false;
|
||||||
|
|
||||||
if (g_monitor_enabled)
|
if (g_monitor_enabled)
|
||||||
ACTION_Monitor(); // 1of11
|
ACTION_Monitor(); // 1of11
|
||||||
|
10
app/main.c
10
app/main.c
@ -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_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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -807,7 +811,7 @@ void MAIN_Key_UP_DOWN(bool key_pressed, bool key_held, scan_state_dir_t Directio
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// only update eeprom when the key is released - saves a LOT of wear and tear on the little eeprom
|
// 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)
|
#if defined(ENABLE_UART) && defined(ENABLE_UART_DEBUG)
|
||||||
// UART_printf("save chan\r\n");
|
// 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;
|
g_request_save_channel = 1;
|
||||||
}
|
}
|
||||||
else
|
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
|
#ifdef ENABLE_SQ_OPEN_WITH_UP_DN_BUTTS
|
||||||
if (!key_held && key_pressed)
|
if (!key_held && key_pressed)
|
||||||
|
@ -753,7 +753,8 @@ void BK4819_set_rf_frequency(const uint32_t frequency, const bool trigger_update
|
|||||||
// trigger a PLL/VCO update
|
// trigger a PLL/VCO update
|
||||||
//
|
//
|
||||||
const uint16_t reg = BK4819_ReadRegister(BK4819_REG_30);
|
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);
|
BK4819_WriteRegister(BK4819_REG_30, reg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user