You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Improve canary
This commit is contained in:
@@ -12,7 +12,7 @@ canary.add_flag(lv.obj.FLAG.HIDDEN)
|
||||
|
||||
def app2_thread():
|
||||
count=0
|
||||
while should_continue and canary.get_class():
|
||||
while should_continue and canary.is_valid():
|
||||
print(f"app2_thread: thread_id {_thread.get_ident()} - {count}")
|
||||
count+=1
|
||||
time.sleep(1)
|
||||
|
||||
Reference in New Issue
Block a user