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

fix key beeps + new copy VFO to chan

This commit is contained in:
OneOfEleven
2023-10-18 20:44:33 +01:00
parent 36ee70df5b
commit 44c1cdbe58
9 changed files with 75 additions and 30 deletions

11
audio.c
View File

@ -29,6 +29,7 @@
#include "driver/gpio.h"
#include "driver/system.h"
#include "driver/systick.h"
#include "driver/uart.h"
#include "functions.h"
#include "misc.h"
#include "settings.h"
@ -96,7 +97,7 @@ void AUDIO_PlayBeep(beep_type_t Beep)
// return;
#endif
if (g_current_function == FUNCTION_RECEIVE || g_current_function == FUNCTION_MONITOR)
return;
return; // not while the speakers in use
GPIO_ClearBit(&GPIOC->DATA, GPIOC_PIN_SPEAKER);
@ -110,9 +111,13 @@ void AUDIO_PlayBeep(beep_type_t Beep)
#endif
#endif
#if defined(ENABLE_UART) && defined(ENABLE_UART_DEBUG)
// UART_printf("beep %u\r\n", (unsigned int)Beep);
#endif
// whats this for ?
// SYSTEM_DelayMs(20);
SYSTEM_DelayMs(2);
SYSTEM_DelayMs(20);
// SYSTEM_DelayMs(2);
switch (Beep)
{