Simplify bootloader.py

This commit is contained in:
Thomas Farstrike
2026-01-09 19:45:09 +01:00
parent 64bd7cf45c
commit cfc04f2fb7
+2 -3
View File
@@ -13,9 +13,8 @@ class ResetIntoBootloader(Activity):
self.setContentView(screen)
def onResume(self, screen):
# Use a timer, otherwise the UI won't have time to update:
timer = lv.timer_create(self.start_bootloader, 1000, None) # give it some time (at least 500ms) for the new screen animation
timer.set_repeat_count(1)
print("Starting start_bootloader time so the UI has time to update")
timer = lv.timer_create(self.start_bootloader, 1000, None).set_repeat_count(1)
def start_bootloader(self, timer):
try: