Explorar el Código

Add default handler to input even switch statement.

Aaron Mavrinac hace 3 años
padre
commit
123583ad39
Se han modificado 1 ficheros con 2 adiciones y 6 borrados
  1. 2 6
      gps.c

+ 2 - 6
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;
           }
         }
       }