Skip to content

Commit

Permalink
Add default handler to input even switch statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
ezod committed Nov 2, 2022
1 parent 03d8ffe commit 123583a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions gps.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,11 @@ int32_t gps_app(void* p)
{
switch (event.input.key)
{
case InputKeyUp:
case InputKeyDown:
case InputKeyRight:
case InputKeyLeft:
case InputKeyOk:
break;
case InputKeyBack:
processing = false;
break;
default:
break;
}
}
}
Expand Down

0 comments on commit 123583a

Please sign in to comment.