Skip to content

Commit

Permalink
Fix bug in key.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Tunas1337 authored Jun 16, 2024
1 parent 0dbfdd7 commit 043e77a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion driver/key.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ void KEY_ReadSideKeys(void)
if (KEY_CurrentKey != KEY_NONE && !KEY_LongPressed) {
KEY_KeyCounter++;
}
if (!KEY_SideKeyLongPressed && (gScreenMode == SCREEN_MAIN || gScreenMode == SCREEN_NOAA) && !gFrequencyDetectMode) {
if (!KEY_SideKeyLongPressed && (gScreenMode == SCREEN_MAIN
#ifdef ENABLE_NOAA
|| gScreenMode == SCREEN_NOAA
#endif
) && !gFrequencyDetectMode) {
if (!gpio_input_data_bit_read(GPIOF, BOARD_GPIOF_KEY_SIDE1)) {
KEY_Side1Counter++;
}
Expand Down

0 comments on commit 043e77a

Please sign in to comment.