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