Add W/N action

This commit is contained in:
Armel FAUVEAU
2024-02-03 16:15:35 +01:00
parent e8760bda5f
commit 9816c1b7be
4 changed files with 12 additions and 2 deletions

View File

@@ -104,6 +104,7 @@ void (*action_opt_table[])(void) = {
#ifdef ENABLE_FEAT_F4HWN
[ACTION_OPT_MAIN] = &ACTION_Main,
[ACTION_OPT_PTT] = &ACTION_Ptt,
[ACTION_OPT_WN] = &ACTION_Wn,
#else
[ACTION_OPT_MAIN] = &FUNCTION_NOP,
#endif
@@ -493,5 +494,11 @@ void ACTION_Ptt(void)
{
gSetting_set_ptt = (gSetting_set_ptt == 0) ? 1: 0;
}
void ACTION_Wn(void)
{
gTxVfo->CHANNEL_BANDWIDTH = (gTxVfo->CHANNEL_BANDWIDTH == 0) ? 1: 0;
}
#endif

View File

@@ -38,6 +38,7 @@ void ACTION_SwitchDemodul(void);
#ifdef ENABLE_FEAT_F4HWN
void ACTION_Main(void);
void ACTION_Ptt(void);
void ACTION_Wn(void);
#endif
void ACTION_Handle(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld);