Skip to content

Commit

Permalink
Add ENABLE_TIMEOUT_ROGERBEEP_NOTIFICATION
Browse files Browse the repository at this point in the history
  • Loading branch information
spm81 committed Feb 20, 2024
1 parent 341b455 commit a77df31
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions app/app.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
10 changes: 10 additions & 0 deletions driver/bk4819.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a77df31

Please sign in to comment.