Skip to content

Commit

Permalink
Merge pull request #122 from kamilsss655/rc.20.4
Browse files Browse the repository at this point in the history
Rc.20.4
  • Loading branch information
kamilsss655 committed Feb 2, 2024
2 parents faf4947 + f124343 commit 5fbb556
Show file tree
Hide file tree
Showing 5 changed files with 196 additions and 412 deletions.
72 changes: 38 additions & 34 deletions app/app.c
Original file line number Diff line number Diff line change
Expand Up @@ -1865,44 +1865,48 @@ static void ProcessKey(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld)
}
#endif
}
switch (gScreenToDisplay) {
case DISPLAY_MAIN:
if ((Key == KEY_SIDE1 || Key == KEY_SIDE2) && !SCANNER_IsScanning())
{
ACTION_Handle(Key, bKeyPressed, bKeyHeld);
}
else
MAIN_ProcessKeys(Key, bKeyPressed, bKeyHeld);
else
{
switch (gScreenToDisplay)
{
case DISPLAY_MAIN:
if ((Key == KEY_SIDE1 || Key == KEY_SIDE2) && !SCANNER_IsScanning())
{
ACTION_Handle(Key, bKeyPressed, bKeyHeld);
}
else
MAIN_ProcessKeys(Key, bKeyPressed, bKeyHeld);

break;
#ifdef ENABLE_FMRADIO
case DISPLAY_FM:
FM_ProcessKeys(Key, bKeyPressed, bKeyHeld);
break;
#endif
case DISPLAY_MENU:
MENU_ProcessKeys(Key, bKeyPressed, bKeyHeld);
break;

#ifdef ENABLE_MESSENGER
case DISPLAY_MSG:
MSG_ProcessKeys(Key, bKeyPressed, bKeyHeld);
break;
#endif
#ifdef ENABLE_FMRADIO
case DISPLAY_FM:
FM_ProcessKeys(Key, bKeyPressed, bKeyHeld);
break;
#endif
case DISPLAY_MENU:
MENU_ProcessKeys(Key, bKeyPressed, bKeyHeld);
break;

#ifdef ENABLE_MESSENGER
case DISPLAY_MSG:
MSG_ProcessKeys(Key, bKeyPressed, bKeyHeld);
break;
#endif

case DISPLAY_SCANNER:
SCANNER_ProcessKeys(Key, bKeyPressed, bKeyHeld);
break;
case DISPLAY_SCANNER:
SCANNER_ProcessKeys(Key, bKeyPressed, bKeyHeld);
break;

#ifdef ENABLE_AIRCOPY
case DISPLAY_AIRCOPY:
AIRCOPY_ProcessKeys(Key, bKeyPressed, bKeyHeld);
break;
#endif
case DISPLAY_INVALID:
default:
gBeepToPlay = BEEP_500HZ_60MS_DOUBLE_BEEP_OPTIONAL;
break;
#ifdef ENABLE_AIRCOPY
case DISPLAY_AIRCOPY:
AIRCOPY_ProcessKeys(Key, bKeyPressed, bKeyHeld);
break;
#endif
case DISPLAY_INVALID:
default:
gBeepToPlay = BEEP_500HZ_60MS_DOUBLE_BEEP_OPTIONAL;
break;
}
}
}

Expand Down
Loading

0 comments on commit 5fbb556

Please sign in to comment.