Skip to content

Commit b33b40c

Browse files
OSUpdate app: fix typo that caused update failure
1 parent c5e8aca commit b33b40c

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,14 @@ def update_with_lvgl(self, url):
183183
response.close()
184184
try:
185185
if bytes_written >= total_size:
186-
lv.update_ui_threadsafe_if_foreground(self.status_label.set_text, "Update finished! Please restart.")
187186
if not simulate: # if the update was completely installed
188187
next_partition.set_boot()
189188
import machine
190189
machine.reset()
191190
# self.install_button stays disabled to prevent the user from installing the same update twice
192191
else:
193192
print("This is an OSUpdate simulation, not attempting to restart the device.")
193+
self.update_ui_threadsafe_if_foreground(self.status_label.set_text, "Update finished! Please restart.")
194194
else:
195195
self.update_ui_threadsafe_if_foreground(self.status_label.set_text, f"Wrote {bytes_written} < {total_size} so not enough!")
196196
self.update_ui_threadsafe_if_foreground(self.install_button.remove_state, lv.STATE.DISABLED) # allow retry

0 commit comments

Comments
 (0)