aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cc3200/mpthreadport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc3200/mpthreadport.c b/cc3200/mpthreadport.c
index a9fb3f0d4..125b59666 100644
--- a/cc3200/mpthreadport.c
+++ b/cc3200/mpthreadport.c
@@ -125,7 +125,7 @@ void mp_thread_create(void *(*entry)(void*), void *arg, size_t *stack_size) {
TaskHandle_t id = xTaskCreateStatic(freertos_entry, "Thread", *stack_size / sizeof(void*), arg, 2, stack, task_buf);
if (id == NULL) {
mp_thread_mutex_unlock(&thread_mutex);
- nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, "can't create thread"));
+ nlr_raise(mp_obj_new_exception_msg(&mp_type_OSError, "can't create thread"));
}
// adjust stack_size to provide room to recover from hitting the limit