Skip to content

Commit 9ab3abf

Browse files
committed
modules/startup/tab5: Delete lvgl related resources.
Signed-off-by: lbuque <[email protected]>
1 parent 933dfe2 commit 9ab3abf

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

m5stack/modules/startup/tab5/launcher/launcher.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from .apps import *
88
import lvgl as lv
99
import asyncio
10+
import M5
1011

1112

1213
class Launcher:
@@ -99,7 +100,10 @@ async def _main(self):
99100
# Start ezdata service
100101
# Ezdata.start()
101102

102-
# Keep app manager running
103-
while True:
104-
await asyncio.sleep_ms(50)
105-
await AppManager.update()
103+
try:
104+
# Keep app manager running
105+
while True:
106+
await asyncio.sleep_ms(50)
107+
await AppManager.update()
108+
except KeyboardInterrupt:
109+
M5.Lcd.lvgl_deinit()

0 commit comments

Comments
 (0)