Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
spm81 committed Feb 21, 2024
1 parent 4af4a8a commit c2bf47e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
21 changes: 11 additions & 10 deletions app/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ int MENU_GetLimits(uint8_t Cursor, uint8_t *pMin, uint8_t *pMax) {
#ifdef ENABLE_MESSENGER_ENCRYPTION
case MENU_MSG_ENC:
#endif
#ifdef ENABLE_MESSENGER_ROGERBEEP_NOTIFICATION
#if defined (ENABLE_MESSENGER) && defined(ENABLE_MESSENGER_ROGERBEEP_NOTIFICATION)
case MENU_MSG_NOTIFICATION:
#endif
#ifdef ENABLE_MESSENGER
Expand Down Expand Up @@ -573,7 +573,8 @@ void MENU_AcceptSetting(void) {
gFlagReconfigureVfos = true;
return;

#ifdef ENABLE_MESSENGER_ENCRYPTION
#ifdef ENABLE_MESSENGER
#ifdef ENABLE_MESSENGER_ENCRYPTION
case MENU_ENC_KEY:
memset(gEeprom.ENC_KEY, 0, sizeof(gEeprom.ENC_KEY));
memmove(gEeprom.ENC_KEY, edit, sizeof(gEeprom.ENC_KEY));
Expand All @@ -588,9 +589,9 @@ void MENU_AcceptSetting(void) {
// SETTINGS_ClearEncryptionKey();
//}
break;
#endif
#endif

#ifdef ENABLE_MESSENGER

#ifdef ENABLE_MESSENGER_ROGERBEEP_NOTIFICATION
case MENU_MSG_NOTIFICATION:
gEeprom.MESSENGER_CONFIG.data.notification = gSubMenuSelection;
Expand All @@ -602,9 +603,8 @@ void MENU_AcceptSetting(void) {

case MENU_MSG_MODULATION:
gEeprom.MESSENGER_CONFIG.data.modulation = gSubMenuSelection;
break;
#endif

break;
#endif
default:
return;
}
Expand Down Expand Up @@ -936,13 +936,14 @@ void MENU_ShowCurrentSetting(void) {
case MENU_SCREN:
gSubMenuSelection = gSetting_ScrambleEnable;
break;
#ifdef ENABLE_MESSENGER
#ifdef ENABLE_MESSENGER_ENCRYPTION
case MENU_MSG_ENC:
gSubMenuSelection = gEeprom.MESSENGER_CONFIG.data.encrypt;
break;
#endif
#endif

#ifdef ENABLE_MESSENGER

case MENU_MSG_ACK:
gSubMenuSelection = gEeprom.MESSENGER_CONFIG.data.ack;
break;
Expand All @@ -954,7 +955,7 @@ void MENU_ShowCurrentSetting(void) {
gSubMenuSelection = gEeprom.MESSENGER_CONFIG.data.notification;
break;
#endif
#endif
#endif

#ifdef ENABLE_STATUS_BATTERY_PERC
case MENU_BATTYP:
Expand Down
2 changes: 1 addition & 1 deletion driver/bk4819.c
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ void BK4819_EnterExitTxMuteSequence3(void) {
}
*/

#if defined(ENABLE_ROGERBEEP) || defined(ENABLE_MESSENGER_ROGERBEEP_NOTIFICATION)
#if defined(ENABLE_ROGERBEEP) || defined(ENABLE_MESSENGER_ROGERBEEP_NOTIFICATION) || defined(ENABLE_TIMEOUT_ROGERBEEP_NOTIFICATION)
void BK4819_PlayBeep(const uint16_t freq, const int delay)
{
BK4819_WriteRegister(BK4819_REG_71, scale_freq(freq));
Expand Down
2 changes: 1 addition & 1 deletion driver/bk4819.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ void BK4819_PrepareFSKReceive(void);
void BK4819_PlayBeep(const uint16_t freq, const int delay);


#if defined(ENABLE_ROGERBEEP) || defined(ENABLE_MESSENGER)
#if defined(ENABLE_ROGERBEEP) || defined(ENABLE_MESSENGER) || defined(ENABLE_TIMEOUT_ROGERBEEP_NOTIFICATION)
void BK4819_PlayRoger(int);
#endif
#if defined(ENABLE_MDC)
Expand Down

0 comments on commit c2bf47e

Please sign in to comment.