spectrum analyzer assignable to Side button, close #478

Signed-off-by: Krzysiek Egzmont <egzumer@gmail.com>
This commit is contained in:
Bogdan-Ioan BRUDIU
2024-02-15 14:38:47 +01:00
committed by Krzysiek Egzmont
parent 1da45d5a77
commit eeee11cf1b
4 changed files with 18 additions and 1 deletions

View File

@@ -53,6 +53,10 @@ inline static void ACTION_Alarm() { ACTION_AlarmOr1750(false); }
inline static void ACTION_1750() { ACTION_AlarmOr1750(true); };
#endif
#ifdef ENABLE_SPECTRUM
#include "app/spectrum.h"
#endif
inline static void ACTION_ScanRestart() { ACTION_Scan(true); };
void (*action_opt_table[])(void) = {
@@ -100,6 +104,12 @@ void (*action_opt_table[])(void) = {
#else
[ACTION_OPT_BLMIN_TMP_OFF] = &FUNCTION_NOP,
#endif
#ifdef ENABLE_SPECTRUM
[ACTION_OPT_SPECTRUM] = &APP_RunSpectrum,
#else
[ACTION_OPT_SPECTRUM] = &FUNCTION_NOP,
#endif
};
static_assert(ARRAY_SIZE(action_opt_table) == ACTION_OPT_LEN);
@@ -440,4 +450,4 @@ void ACTION_BlminTmpOff(void)
BACKLIGHT_SetBrightness(0);
}
}
#endif
#endif