Skip to content

Commit

Permalink
UX: stop screensaver low after a new display
Browse files Browse the repository at this point in the history
This will reactivate the Ledger screensaver
  • Loading branch information
spalmer25 committed Apr 11, 2024
1 parent 6feb16f commit 6458076
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ui_bagl.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ uint8_t io_event(uint8_t channel) {

switch (G_io_seproxyhal_spi_buffer[0]) {
case SEPROXYHAL_TAG_BUTTON_PUSH_EVENT:
// Pressing any button will stop the low-cost display mode.
ux_set_low_cost_display_mode(false);
UX_BUTTON_PUSH_EVENT(G_io_seproxyhal_spi_buffer);
break;
Expand All @@ -80,6 +81,8 @@ uint8_t io_event(uint8_t channel) {
}
__attribute__((fallthrough));
case SEPROXYHAL_TAG_DISPLAY_PROCESSED_EVENT:
// As soon as something is newly displayed, the low-cost display mode stops.
ux_set_low_cost_display_mode(false);
#ifdef HAVE_BAGL
UX_DISPLAYED_EVENT({});
#endif // HAVE_BAGL
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6458076

Please sign in to comment.