Skip to content

Commit

Permalink
SD update - wait buttons to be released before leaving
Browse files Browse the repository at this point in the history
  • Loading branch information
odudex committed Dec 12, 2024
1 parent e25501d commit 7a430c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/krux/firmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ def status_text(text):
inp.buttons_active = True
if inp.wait_for_button() in (BUTTON_PAGE, BUTTON_PAGE_PREV):
display.clear()
inp.wait_for_release() # Wait for button release loading inputs on context
return False

if new_size > MAX_FIRMWARE_SIZE:
Expand Down

0 comments on commit 7a430c8

Please sign in to comment.