Skip to content

Commit

Permalink
SFT-1823: added inheritance to attach/detach calls
Browse files Browse the repository at this point in the history
  • Loading branch information
mjg-foundation committed Apr 18, 2023
1 parent c5bc8ce commit d44ccb5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ports/stm32/boards/Passport/modules/pages/progress_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def __init__(
def attach(self, group):
import common

super().attach(group)
# Never auto-shutdown during progress
common.settings.set_volatile('shutdown_timeout', 0)

Expand All @@ -38,3 +39,4 @@ def detach(self):
# reset auto-shutdown timer before returning to normal setting
feedback()
common.settings.clear_volatile('shutdown_timeout')
super().detach()

0 comments on commit d44ccb5

Please sign in to comment.