0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-20 06:58:39 +03:00

fix main.c compile

This commit is contained in:
OneOfEleven
2023-10-27 17:27:31 +01:00
parent eb03123666
commit 7bd83cdd32
10 changed files with 48 additions and 33 deletions

View File

@ -53,8 +53,11 @@ void BK4819_Init(void)
BK4819_WriteRegister(0x37, 0x1D0F);
BK4819_WriteRegister(0x36, 0x0022);
// BK4819_DisableAGC();
BK4819_EnableAGC();
#ifdef ENABLE_AM_FIX
BK4819_DisableAGC();
#else
BK4819_EnableAGC(); // only do this in linear modulation modes, not FM
#endif
BK4819_WriteRegister(0x19, 0x1041); // 0001 0000 0100 0001 <15> MIC AGC 1 = disable 0 = enable