forked from mirror/uv-k5-firmware
Renamed dodgy name to real name.
This commit is contained in:
parent
41f1e84766
commit
0e14ef4e26
@ -19,12 +19,9 @@
|
|||||||
|
|
||||||
#include "driver/keyboard.h"
|
#include "driver/keyboard.h"
|
||||||
|
|
||||||
//static void ACTION_FlashLight(void)
|
|
||||||
void ACTION_Power(void);
|
void ACTION_Power(void);
|
||||||
//static void ACTION_Monitor(void)
|
|
||||||
void ACTION_Scan(bool bFlag);
|
void ACTION_Scan(bool bFlag);
|
||||||
void ACTION_Vox(void);
|
void ACTION_Vox(void);
|
||||||
//static void ACTION_AlarmOr1750(bool b1750)
|
|
||||||
void ACTION_FM(void);
|
void ACTION_FM(void);
|
||||||
|
|
||||||
void ACTION_Handle(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld);
|
void ACTION_Handle(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld);
|
||||||
|
@ -759,7 +759,7 @@ void APP_Update(void)
|
|||||||
|
|
||||||
if (gBatterySaveCountdownExpired && gCurrentFunction == FUNCTION_POWER_SAVE && gVoiceWriteIndex == 0) {
|
if (gBatterySaveCountdownExpired && gCurrentFunction == FUNCTION_POWER_SAVE && gVoiceWriteIndex == 0) {
|
||||||
if (gRxIdleMode) {
|
if (gRxIdleMode) {
|
||||||
BK4819_Conditional_RX_TurnOn_and_GPIO6_Enable();
|
BK4819_EnableRX();
|
||||||
if (gEeprom.VOX_SWITCH) {
|
if (gEeprom.VOX_SWITCH) {
|
||||||
BK4819_EnableVox(gEeprom.VOX1_THRESHOLD, gEeprom.VOX0_THRESHOLD);
|
BK4819_EnableVox(gEeprom.VOX1_THRESHOLD, gEeprom.VOX0_THRESHOLD);
|
||||||
}
|
}
|
||||||
|
@ -542,7 +542,7 @@ void BK4819_ExitSubAu(void)
|
|||||||
BK4819_WriteRegister(BK4819_REG_51, 0x0000);
|
BK4819_WriteRegister(BK4819_REG_51, 0x0000);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BK4819_Conditional_RX_TurnOn_and_GPIO6_Enable(void)
|
void BK4819_EnableRX(void)
|
||||||
{
|
{
|
||||||
if (gRxIdleMode) {
|
if (gRxIdleMode) {
|
||||||
BK4819_ToggleGpioOut(BK4819_GPIO0_PIN28_RX_ENABLE, true);
|
BK4819_ToggleGpioOut(BK4819_GPIO0_PIN28_RX_ENABLE, true);
|
||||||
|
@ -93,7 +93,7 @@ void BK4819_PrepareTransmit(void);
|
|||||||
void BK4819_TxOn_Beep(void);
|
void BK4819_TxOn_Beep(void);
|
||||||
void BK4819_ExitSubAu(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_EnterDTMF_TX(bool bLocalLoopback);
|
||||||
void BK4819_ExitDTMF_TX(bool bKeep);
|
void BK4819_ExitDTMF_TX(bool bKeep);
|
||||||
|
@ -80,7 +80,7 @@ void FUNCTION_Select(FUNCTION_Type_t Function)
|
|||||||
|
|
||||||
if (bWasPowerSave) {
|
if (bWasPowerSave) {
|
||||||
if (Function != FUNCTION_POWER_SAVE) {
|
if (Function != FUNCTION_POWER_SAVE) {
|
||||||
BK4819_Conditional_RX_TurnOn_and_GPIO6_Enable();
|
BK4819_EnableRX();
|
||||||
gRxIdleMode = false;
|
gRxIdleMode = false;
|
||||||
UI_DisplayStatus();
|
UI_DisplayStatus();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user