mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 09:00:23 +08:00
zephyr/main: Execute main.py frozen module on boot, if available.
This commit is contained in:
parent
7e3b21ec54
commit
aa7828f822
@ -44,6 +44,7 @@ int real_main(void) {
|
|||||||
gc_init(heap, heap + sizeof(heap));
|
gc_init(heap, heap + sizeof(heap));
|
||||||
#endif
|
#endif
|
||||||
mp_init();
|
mp_init();
|
||||||
|
pyexec_frozen_module("main.py");
|
||||||
#if MICROPY_REPL_EVENT_DRIVEN
|
#if MICROPY_REPL_EVENT_DRIVEN
|
||||||
pyexec_event_repl_init();
|
pyexec_event_repl_init();
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
Loading…
Reference in New Issue
Block a user