From c9520c591b8844470e0ae5f06f573add5a7172b4 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 30 May 2016 16:58:43 +0100 Subject: [PATCH] cc3200: Fix call to new exception to be _msg instead of _arg1. --- cc3200/mpthreadport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cc3200/mpthreadport.c b/cc3200/mpthreadport.c index a9fb3f0d47..125b59666c 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