File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
internal_filesystem/builtin/apps/com.micropythonos.osupdate/assets Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments