Skip to content

Commit d6222b8

Browse files
OSUpdate: also show feedback in case of simulation
1 parent 6497aa5 commit d6222b8

File tree

1 file changed

+1
-2
lines changed
  • internal_filesystem/builtin/apps/com.micropythonos.osupdate/assets

1 file changed

+1
-2
lines changed

internal_filesystem/builtin/apps/com.micropythonos.osupdate/assets/osupdate.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,11 @@ def update_with_lvgl(self, url):
186186
response.close()
187187
try:
188188
if bytes_written >= total_size:
189+
lv.async_call(lambda l: self.status_label.set_text("Update finished! Please restart."), None)
189190
if not simulate: # if the update was completely installed
190191
next_partition.set_boot()
191192
import machine
192193
machine.reset()
193-
# In case it didn't reset:
194-
lv.async_call(lambda l: self.status_label.set_text("Update finished! Please restart."), None)
195194
# self.install_button stays disabled to prevent the user from installing the same update twice
196195
else:
197196
print("This is an OSUpdate simulation, not attempting to restart the device.")

0 commit comments

Comments
 (0)