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

FM radio audio

This commit is contained in:
OneOfEleven 2023-10-30 18:02:27 +00:00
parent e63672521c
commit 145e8b4a14
4 changed files with 4 additions and 3 deletions

View File

@ -22,6 +22,7 @@
#include "audio.h"
#include "bsp/dp32g030/gpio.h"
#include "driver/bk1080.h"
#include "driver/bk4819.h"
#include "driver/eeprom.h"
#include "driver/gpio.h"
#if defined(ENABLE_UART) && defined(ENABLE_UART_DEBUG)
@ -257,6 +258,8 @@ void FM_scan(void)
void FM_turn_on(void)
{
BK4819_SetAF(BK4819_AF_MUTE);
g_fm_radio_mode = true;
g_fm_scan_state_dir = FM_SCAN_STATE_DIR_OFF;
g_fm_restore_tick_10ms = 0;

View File

@ -562,7 +562,6 @@ void MENU_AcceptSetting(void)
g_eeprom.vox_switch = g_sub_menu_selection != 0;
if (g_eeprom.vox_switch)
g_eeprom.vox_level = g_sub_menu_selection - 1;
BOARD_eeprom_loadCalibration();
g_flag_reconfigure_vfos = true;
g_update_status = true;
break;
@ -659,8 +658,7 @@ void MENU_AcceptSetting(void)
break;
case MENU_MIC_GAIN:
g_eeprom.mic_sensitivity = g_sub_menu_selection;
// BOARD_eeprom_loadCalibration();
g_eeprom.mic_sensitivity = g_sub_menu_selection;
g_eeprom.mic_sensitivity_tuning = g_mic_gain_dB_2[g_eeprom.mic_sensitivity];
BK4819_set_mic_gain(g_eeprom.mic_sensitivity_tuning);
g_flag_reconfigure_vfos = true;

Binary file not shown.

Binary file not shown.