Skip to content
Snippets Groups Projects
Commit aa7828f8 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

zephyr/main: Execute main.py frozen module on boot, if available.

parent 7e3b21ec
No related branches found
No related tags found
No related merge requests found
...@@ -44,6 +44,7 @@ int real_main(void) { ...@@ -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 (;;) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment