antirez 3 лет назад
Родитель
Сommit
999cc4831e
1 измененных файлов с 5 добавлено и 2 удалено
  1. 5 2
      app.c

+ 5 - 2
app.c

@@ -483,6 +483,8 @@ int32_t protoview_app_entry(void* p) {
                 else
                     app->current_view--;
             } else {
+                /* This is where we pass the control to the currently
+                 * active view input processing. */
                 switch(app->current_view) {
                 case ViewRawPulses:
                     process_input_raw_pulses(app,input);
@@ -495,8 +497,9 @@ int32_t protoview_app_entry(void* p) {
                 }
             }
         } else {
-            static int c = 0;
-            c++;
+            /* Useful to understand if the app is still alive when it
+             * does not respond because of bugs. */
+            static int c = 0; c++;
             if (!(c % 20)) FURI_LOG_E(TAG, "Loop timeout");
         }
         view_port_update(app->view_port);