diff options
Diffstat (limited to 'zephyr/main.c')
-rw-r--r-- | zephyr/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zephyr/main.c b/zephyr/main.c index 8d319098b..9146cfadb 100644 --- a/zephyr/main.c +++ b/zephyr/main.c @@ -58,7 +58,7 @@ void do_str(const char *src, mp_parse_input_kind_t input_kind) { } static char *stack_top; -static char heap[16 * 1024]; +static char heap[MICROPY_HEAP_SIZE]; int real_main(void) { int stack_dummy; @@ -72,7 +72,9 @@ int real_main(void) { #endif mp_init(); MP_STATE_PORT(mp_kbd_exception) = mp_obj_new_exception(&mp_type_KeyboardInterrupt); + #if MICROPY_MODULE_FROZEN pyexec_frozen_module("main.py"); + #endif #if MICROPY_REPL_EVENT_DRIVEN pyexec_event_repl_init(); for (;;) { |