8000 lv_utils.py: call lv.init() · wired8/lv_binding_micropython@a6883e7 · GitHub
[go: up one dir, main page]

Skip to content

Commit a6883e7

Browse files
committed
lv_utils.py: call lv.init()
To prevent cases where the user forgets calling lv.init(), it is automatically called before starting the event loop Related: https://forum.lvgl.io/t/guru-meditation-error-core-0-paniced-loadprohibited-exception-was-unhandled/6230/4
1 parent 825081f commit a6883e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/lv_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class event_loop():
6868
def __init__(self, freq=25, timer_id=default_timer_id, max_scheduled=2, refresh_cb=None, asynchronous=False):
6969
if self.is_running():
7070
raise RuntimeError("Event loop is already running!")
71+
lv.init()
7172
event_loop._current_instance = self
7273

7374
self.delay = 1000 // freq

0 commit comments

Comments
 (0)
0