summaryrefslogtreecommitdiff
path: root/ports/stm32/pybthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/stm32/pybthread.c')
-rw-r--r--ports/stm32/pybthread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/stm32/pybthread.c b/ports/stm32/pybthread.c
index 6baf88f66..d6e9a3f51 100644
--- a/ports/stm32/pybthread.c
+++ b/ports/stm32/pybthread.c
@@ -70,8 +70,8 @@ void pyb_thread_init(pyb_thread_t *thread) {
thread->sp = NULL; // will be set when this thread switches out
thread->local_state = 0; // will be set by mp_thread_init
thread->arg = NULL;
- thread->stack = &_heap_end;
- thread->stack_len = ((uint32_t)&_estack - (uint32_t)&_heap_end) / sizeof(uint32_t);
+ thread->stack = &_sstack;
+ thread->stack_len = ((uint32_t)&_estack - (uint32_t)&_sstack) / sizeof(uint32_t);
thread->all_next = NULL;
thread->run_prev = thread;
thread->run_next = thread;