Skip to content

Commit

Permalink
A few more comments in app.c
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Dec 31, 2022
1 parent de3dee1 commit 999cc48
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 999cc48

Please sign in to comment.