summaryrefslogtreecommitdiff
path: root/components/cplusplus
diff options
context:
space:
mode:
Diffstat (limited to 'components/cplusplus')
-rw-r--r--components/cplusplus/Thread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/cplusplus/Thread.cpp b/components/cplusplus/Thread.cpp
index 26043a3581..9b2a2ad5e0 100644
--- a/components/cplusplus/Thread.cpp
+++ b/components/cplusplus/Thread.cpp
@@ -37,7 +37,7 @@ Thread::Thread(void (*entry)(void *p),
rt_event_init(&_event, name, 0);
_thread = rt_thread_create(name,
- (thread_func_t)entry,
+ (thread_func_t)func,
this,
stack_size,
priority,