ACTION_Handle: Drop switch in favour of a function array

This commit is contained in:
Juan Antonio
2023-12-07 12:22:22 +01:00
parent 4249d917f8
commit 335c2ec9cd
4 changed files with 70 additions and 75 deletions

View File

@@ -75,7 +75,7 @@ enum {
OUTPUT_POWER_HIGH
};
enum {
enum ACTION_OPT_t {
ACTION_OPT_NONE = 0,
ACTION_OPT_FLASHLIGHT,
ACTION_OPT_POWER,