File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -182,8 +182,9 @@ void oneIter() {
182182 getBaseFileName (g_scriptPath, scriptName, sizeof (scriptName));
183183 InfoTrace (" Script started: %s\n " , scriptName);
184184
185- #if 0
185+ #if 1
186186 // this version reinitialise MP every time
187+
187188 volatile char dummy;
188189 mp_stack_set_top ((void *)&dummy);
189190 gc_init (g_scriptSource + MAX_SCRIPT_LENGTH, MP_BUFFER + MP_BUFFER_SIZE - MAX_SCRIPT_LENGTH);
@@ -207,8 +208,9 @@ void oneIter() {
207208 mp_deinit ();
208209#endif
209210
210- #if 1
211+ #if 0
211212 // this version doesn't reinitialise MP every time
213+
212214 static bool g_initialized = false;
213215 if (!g_initialized) {
214216 volatile char dummy;
@@ -232,7 +234,6 @@ void oneIter() {
232234 mp_obj_print_exception(&mp_plat_print, (mp_obj_t)nlr.ret_val);
233235 onUncaughtScriptExceptionHook();
234236 }
235-
236237#endif
237238
238239 psu::gui::hideAsyncOperationInProgress ();
You can’t perform that action at this time.
0 commit comments