From a77df31ea84b58594d3918b4dc6f3308745ada9a Mon Sep 17 00:00:00 2001 From: spm81 Date: Tue, 20 Feb 2024 23:52:32 +0000 Subject: [PATCH] Add ENABLE_TIMEOUT_ROGERBEEP_NOTIFICATION --- Makefile | 5 +++++ app/app.c | 3 +++ driver/bk4819.c | 10 ++++++++++ 3 files changed, 18 insertions(+) diff --git a/Makefile b/Makefile index aef8e59..301bf73 100644 --- a/Makefile +++ b/Makefile @@ -43,6 +43,8 @@ ENABLE_VOX_MAX_DELAY := 1 ENABLE_NOSCANTIMEOUT := 1 ENABLE_KEEPNAMEONSAVE := 1 ENABLE_FASTER_CHANNEL_SCAN := 1 +# Enable Timeout beep at the end of timeout - 56 bytes +ENABLE_TIMEOUT_ROGERBEEP_NOTIFICATION := 0 # CW Modulation ENABLE_CW := 0 @@ -319,6 +321,9 @@ endif ifeq ($(ENABLE_ROGERBEEP),1) CFLAGS += -DENABLE_ROGERBEEP endif +ifeq ($(ENABLE_TIMEOUT_ROGERBEEP_NOTIFICATION),1) + CFLAGS += -DENABLE_TIMEOUT_ROGERBEEP_NOTIFICATION +endif ifeq ($(ENABLE_MDC),1) CFLAGS += -DENABLE_MDC endif diff --git a/app/app.c b/app/app.c index b478610..95576a9 100644 --- a/app/app.c +++ b/app/app.c @@ -706,6 +706,9 @@ void APP_Update(void) { if (gCurrentFunction == FUNCTION_TRANSMIT && gTxTimeoutReached) { gTxTimeoutReached = false; gFlagEndTransmission = true; +#ifdef ENABLE_TIMEOUT_ROGERBEEP_NOTIFICATION + BK4819_PlayRoger(98); +#endif APP_EndTransmission(); AUDIO_PlayBeep(BEEP_500HZ_60MS_DOUBLE_BEEP); RADIO_SetVfoState(VFO_STATE_TIMEOUT); diff --git a/driver/bk4819.c b/driver/bk4819.c index 693f96f..609050b 100644 --- a/driver/bk4819.c +++ b/driver/bk4819.c @@ -1135,6 +1135,16 @@ void BK4819_PlayRoger(int t) #endif +#ifdef ENABLE_TIMEOUT_ROGERBEEP_NOTIFICATION + + case 98: // TIMEOUT ROGER BEEP + BK4819_PlayBeep(500, 60); // Frequency and duration can be adjusted + BK4819_PlayBeep(0, 30); + BK4819_PlayBeep(500, 60); + BK4819_PlayBeep(0, 30); + BK4819_PlayBeep(500, 60); + break; +#endif #ifdef ENABLE_MESSENGER_ROGERBEEP_NOTIFICATION case 99: // NOKIA SMS Tone2 BK4819_PlayBeep(800, 200); // Frequency and duration can be adjusted