diff --git a/app/action.h b/app/action.h index 1aeb1fb..3a3b5ab 100644 --- a/app/action.h +++ b/app/action.h @@ -19,12 +19,9 @@ #include "driver/keyboard.h" -//static void ACTION_FlashLight(void) void ACTION_Power(void); -//static void ACTION_Monitor(void) void ACTION_Scan(bool bFlag); void ACTION_Vox(void); -//static void ACTION_AlarmOr1750(bool b1750) void ACTION_FM(void); void ACTION_Handle(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld); diff --git a/app/app.c b/app/app.c index 478f4fd..e8d86f5 100644 --- a/app/app.c +++ b/app/app.c @@ -759,7 +759,7 @@ void APP_Update(void) if (gBatterySaveCountdownExpired && gCurrentFunction == FUNCTION_POWER_SAVE && gVoiceWriteIndex == 0) { if (gRxIdleMode) { - BK4819_Conditional_RX_TurnOn_and_GPIO6_Enable(); + BK4819_EnableRX(); if (gEeprom.VOX_SWITCH) { BK4819_EnableVox(gEeprom.VOX1_THRESHOLD, gEeprom.VOX0_THRESHOLD); } diff --git a/driver/bk4819.c b/driver/bk4819.c index 2812e4c..1d3fc8b 100644 --- a/driver/bk4819.c +++ b/driver/bk4819.c @@ -542,7 +542,7 @@ void BK4819_ExitSubAu(void) BK4819_WriteRegister(BK4819_REG_51, 0x0000); } -void BK4819_Conditional_RX_TurnOn_and_GPIO6_Enable(void) +void BK4819_EnableRX(void) { if (gRxIdleMode) { BK4819_ToggleGpioOut(BK4819_GPIO0_PIN28_RX_ENABLE, true); diff --git a/driver/bk4819.h b/driver/bk4819.h index 5802b2d..44f2c33 100644 --- a/driver/bk4819.h +++ b/driver/bk4819.h @@ -93,7 +93,7 @@ void BK4819_PrepareTransmit(void); void BK4819_TxOn_Beep(void); void BK4819_ExitSubAu(void); -void BK4819_Conditional_RX_TurnOn_and_GPIO6_Enable(void); +void BK4819_EnableRX(void); void BK4819_EnterDTMF_TX(bool bLocalLoopback); void BK4819_ExitDTMF_TX(bool bKeep); diff --git a/functions.c b/functions.c index 7787f41..ef755d4 100644 --- a/functions.c +++ b/functions.c @@ -80,7 +80,7 @@ void FUNCTION_Select(FUNCTION_Type_t Function) if (bWasPowerSave) { if (Function != FUNCTION_POWER_SAVE) { - BK4819_Conditional_RX_TurnOn_and_GPIO6_Enable(); + BK4819_EnableRX(); gRxIdleMode = false; UI_DisplayStatus(); }