Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd6222b8

Browse files
OSUpdate: also show feedback in case of simulation
1 parent6497aa5 commitd6222b8

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
ifbytes_written>=total_size:
189+
lv.async_call(lambdal:self.status_label.set_text("Update finished! Please restart."),None)
189190
ifnotsimulate:# if the update was completely installed
190191
next_partition.set_boot()
191192
importmachine
192193
machine.reset()
193-
# In case it didn't reset:
194-
lv.async_call(lambdal: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)

[8]ページ先頭

©2009-2025 Movatter.jp