From 123583ad394eabcf6e9ff8f2afd863453ade1943 Mon Sep 17 00:00:00 2001 From: Aaron Mavrinac Date: Wed, 2 Nov 2022 19:14:11 -0400 Subject: [PATCH] Add default handler to input even switch statement. --- gps.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gps.c b/gps.c index ce1fd05c74d..85212442ce8 100644 --- a/gps.c +++ b/gps.c @@ -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; } } }