0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-04-29 06:41:25 +03:00
This commit is contained in:
OneOfEleven 2023-11-18 18:54:06 +00:00
parent 04faeb1ee6
commit 1e8c28b193
3 changed files with 20 additions and 9 deletions

View File

@ -1930,6 +1930,10 @@ void APP_process_power_save(void)
g_update_rssi) g_update_rssi)
{ // go back to sleep { // go back to sleep
#ifdef ENABLE_PANADAPTER
if (!g_eeprom.config.setting.panadapter)
#endif
{
APP_update_rssi(g_rx_vfo_num, false); APP_update_rssi(g_rx_vfo_num, false);
// go back to sleep // go back to sleep
@ -1941,6 +1945,7 @@ void APP_process_power_save(void)
BK4819_Sleep(); BK4819_Sleep();
BK4819_set_GPIO_pin(BK4819_GPIO0_PIN28_RX_ENABLE, false); BK4819_set_GPIO_pin(BK4819_GPIO0_PIN28_RX_ENABLE, false);
} }
}
else else
if (APP_toggle_dual_watch_vfo()) if (APP_toggle_dual_watch_vfo())
{ {
@ -2422,6 +2427,9 @@ void APP_time_slice_10ms(void)
#ifdef ENABLE_AM_FIX #ifdef ENABLE_AM_FIX
if (g_rx_vfo->channel.mod_mode != MOD_MODE_FM && g_eeprom.config.setting.am_fix) if (g_rx_vfo->channel.mod_mode != MOD_MODE_FM && g_eeprom.config.setting.am_fix)
#ifdef ENABLE_PANADAPTER
if (!g_eeprom.config.setting.panadapter || g_panadapter_vfo_mode > 0)
#endif
AM_fix_10ms(g_rx_vfo_num); AM_fix_10ms(g_rx_vfo_num);
#endif #endif
@ -2452,6 +2460,9 @@ void APP_time_slice_10ms(void)
// if (g_update_rssi) // if (g_update_rssi)
if (g_current_function != FUNCTION_POWER_SAVE && g_current_function != FUNCTION_TRANSMIT) if (g_current_function != FUNCTION_POWER_SAVE && g_current_function != FUNCTION_TRANSMIT)
if (!g_flag_save_channel) if (!g_flag_save_channel)
#ifdef ENABLE_PANADAPTER
if (!g_eeprom.config.setting.panadapter || g_panadapter_vfo_mode > 0)
#endif
APP_update_rssi(g_rx_vfo_num, false); APP_update_rssi(g_rx_vfo_num, false);
if (g_current_function != FUNCTION_POWER_SAVE || !g_rx_idle_mode) if (g_current_function != FUNCTION_POWER_SAVE || !g_rx_idle_mode)

Binary file not shown.

Binary file not shown.