From 0d03afb3a38a841f7f68b439944ffb15cfe7f3e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Tue, 25 Jun 2019 14:23:03 +0200 Subject: [PATCH] [python/port] Increase stack limit on emscripten, simulator... The value is quite arbitrary, we just do not want to outperfom the device but still provide more recursion depth. --- python/port/port.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/port/port.cpp b/python/port/port.cpp index ba1106936..5fb130dc0 100644 --- a/python/port/port.cpp +++ b/python/port/port.cpp @@ -105,7 +105,7 @@ void MicroPython::init(void * heapStart, void * heapEnd) { #else volatile int stackTop; mp_stack_set_top((void *)(&stackTop)); - mp_stack_set_limit(4000); + mp_stack_set_limit(8192); #endif gc_init(heapStart, heapEnd); mp_init();