Skip to content

Commit

Permalink
Remove unneeded ui_idle call
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeutin-ledger committed Apr 15, 2024
1 parent 41d158b commit 4894e4d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ void app_main(void) {
// Force a return to the main function in order to trigger a full clean restart
return;
}

if (G_swap_ctx.state == INITIAL_STATE) {
ui_idle();
}
}
}

Expand Down Expand Up @@ -149,8 +145,10 @@ __attribute__((section(".boot"))) int main(__attribute__((unused)) int arg0) {
if (G_previous_cycle_data.had_previous_cycle) {
G_previous_cycle_data.had_previous_cycle = false;
if (G_previous_cycle_data.was_successful) {
PRINTF("Displaying modal for successful last cycle\n");
display_signing_success();
} else {
PRINTF("Displaying modal for failed last cycle\n");
display_signing_failure(G_previous_cycle_data.appname_last_cycle);
}
} else {
Expand Down

0 comments on commit 4894e4d

Please sign in to comment.