8000 try in lvstm32.py · mhepp63/lv_binding_micropython@e4cf87c · GitHub
[go: up one dir, main page]

Skip to content

Commit e4cf87c

Browse files
prolombamirgon
authored andcommitted
try in lvstm32.py
1 parent cc60d68 commit e4cf87c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

driver/stm32/lvstm32.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ def task_handler(self, _):
1919
lv.task_handler()
2020

2121
def timer_cb(self, t):
22-
lv.tick_inc(self.delay)
23-
# Passing self.task_handler would cause allocation.
24-
micropython.schedule(self.task_handler_ref, 0)
22+
try:
23+
lv.tick_inc(self.delay)
24+
# Passing self.task_handler would cause allocation.
25+
micropython.schedule(self.task_handler_ref, 0)
26+
except:
27+
pass
28+
2529

0 commit comments

Comments
 (0)
0