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

Fix RF scan problem + removed enums

This commit is contained in:
OneOfEleven
2023-10-25 08:47:00 +01:00
parent 9f3fa510c2
commit 5b5259c17d
13 changed files with 398 additions and 464 deletions

View File

@ -76,7 +76,7 @@ beep_type_t g_beep_to_play = BEEP_NONE;
void AUDIO_PlayBeep(beep_type_t Beep)
{
const uint16_t ToneConfig = BK4819_ReadRegister(BK4819_REG_71);
const uint16_t ToneConfig = BK4819_ReadRegister(0x71);
uint16_t ToneFrequency;
uint16_t Duration;
@ -218,7 +218,7 @@ void AUDIO_PlayBeep(beep_type_t Beep)
SYSTEM_DelayMs(2);
// restore the register
BK4819_WriteRegister(BK4819_REG_71, ToneConfig);
BK4819_WriteRegister(0x71, ToneConfig);
if (g_speaker_enabled)
GPIO_SetBit(&GPIOC->DATA, GPIOC_PIN_SPEAKER);