diff options
| author | Damien George | 2016-05-30 16:58:43 +0100 |
|---|---|---|
| committer | Damien George | 2016-06-28 11:28:51 +0100 |
| commit | c9520c591b8844470e0ae5f06f573add5a7172b4 (patch) | |
| tree | 7fc0b2a2fad015e95150aa95d7be0a11a767945c | |
| parent | df95f52583e0f5e3f2a74f7461bb00e2f24b3079 (diff) | |
cc3200: Fix call to new exception to be _msg instead of _arg1.
| -rw-r--r-- | cc3200/mpthreadport.c | 2 |
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 |
