Skip to content

Commit cfc04f2

Browse files
Simplify bootloader.py
1 parent 64bd7cf commit cfc04f2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

internal_filesystem/lib/mpos/bootloader.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ def onCreate(self):
1313
self.setContentView(screen)
1414

1515
def onResume(self, screen):
16-
# Use a timer, otherwise the UI won't have time to update:
17-
timer = lv.timer_create(self.start_bootloader, 1000, None) # give it some time (at least 500ms) for the new screen animation
18-
timer.set_repeat_count(1)
16+
print("Starting start_bootloader time so the UI has time to update")
17+
timer = lv.timer_create(self.start_bootloader, 1000, None).set_repeat_count(1)
1918

2019
def start_bootloader(self, timer):
2120
try:

0 commit comments

Comments
 (0)