From bcd6c1ca4f983846c32362db3fb75538a71e2921 Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Sun, 11 Feb 2024 22:00:52 +0100 Subject: [PATCH] Fix EOT sound alert --- ui/main.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/ui/main.c b/ui/main.c index 6dac042..1297acc 100644 --- a/ui/main.c +++ b/ui/main.c @@ -486,21 +486,12 @@ void UI_MAIN_TimeSlice500ms(void) BK4819_ToggleGpioOut(BK4819_GPIO6_PIN2_GREEN, true); } - if(RXBlinkLedCounter <= 6) + if(RXBlinkLedCounter > 6) { if(gSetting_set_eot == 1 || gSetting_set_eot == 3) { AUDIO_PlayBeep(BEEP_800HZ_30MS); - } - } - else - { - if(gSetting_set_eot == 1 || gSetting_set_eot == 3) - { - AUDIO_PlayBeep(BEEP_800HZ_30MS); - SYSTEM_DelayMs(100); - AUDIO_PlayBeep(BEEP_1000HZ_30MS); - SYSTEM_DelayMs(100); + SYSTEM_DelayMs(300); } else if(gSetting_set_eot == 2) {