We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6497aa5 commit d6222b8Copy full SHA for d6222b8
1 file changed
internal_filesystem/builtin/apps/com.micropythonos.osupdate/assets/osupdate.py
@@ -186,12 +186,11 @@ def update_with_lvgl(self, url):
186
response.close()
187
try:
188
if bytes_written >= total_size:
189
+ lv.async_call(lambda l: self.status_label.set_text("Update finished! Please restart."), None)
190
if not simulate: # if the update was completely installed
191
next_partition.set_boot()
192
import machine
193
machine.reset()
- # In case it didn't reset:
194
- lv.async_call(lambda l: self.status_label.set_text("Update finished! Please restart."), None)
195
# self.install_button stays disabled to prevent the user from installing the same update twice
196
else:
197
print("This is an OSUpdate simulation, not attempting to restart the device.")
0 commit comments