Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
xawen committed Nov 16, 2023
1 parent f351520 commit 1149ea6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"menu.h": "c",
"printf.h": "c",
"gfx.h": "c",
"main.h": "c"
"main.h": "c",
"bk4819.h": "c"
},
"search.useIgnoreFiles": false
}
11 changes: 7 additions & 4 deletions task/keyaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "app/radio.h"
#include "app/fm.h"
#include "app/menu.h"
#include "app/spectrum.h"
#include "driver/beep.h"
#include "driver/bk4819.h"
#include "driver/key.h"
Expand Down Expand Up @@ -212,10 +213,12 @@ void KeypressAction(uint8_t Action)
break;

case ACTION_FLASHLIGHT:
if (!gFlashlightMode) {
FLASHLIGHT_Toggle();
}
break;
// if (!gFlashlightMode) {
// FLASHLIGHT_Toggle();
// }
gInputBoxWriteIndex = 0;
APP_Spectrum();
break;


case ACTION_FM_RADIO:
Expand Down

0 comments on commit 1149ea6

Please sign in to comment.