There was an error while loading. Please reload this page.
1 parent 416707e commit d5c45a8Copy full SHA for d5c45a8
ports/embed/port/embed_util.c
@@ -66,7 +66,9 @@ void mp_embed_exec_mpy(const uint8_t *mpy, size_t len) {
66
// Execute the given .mpy data.
67
mp_module_context_t *ctx = m_new_obj(mp_module_context_t);
68
ctx->module.globals = mp_globals_get();
69
- mp_compiled_module_t cm = mp_raw_code_load_mem(mpy, len, ctx);
+ mp_compiled_module_t cm;
70
+ cm.context = ctx;
71
+ mp_raw_code_load_mem(mpy, len, &cm);
72
mp_obj_t f = mp_make_function_from_raw_code(cm.rc, ctx, MP_OBJ_NULL);
73
mp_call_function_0(f);
74
nlr_pop();
0 commit comments