更正RTX5线程名获取方式
This commit is contained in:
@@ -243,8 +243,7 @@ static const char *get_cur_thread_name(void) {
|
|||||||
#elif (CMB_OS_PLATFORM_TYPE == CMB_OS_PLATFORM_FREERTOS)
|
#elif (CMB_OS_PLATFORM_TYPE == CMB_OS_PLATFORM_FREERTOS)
|
||||||
return vTaskName();
|
return vTaskName();
|
||||||
#elif (CMB_OS_PLATFORM_TYPE == CMB_OS_PLATFORM_RTX5)
|
#elif (CMB_OS_PLATFORM_TYPE == CMB_OS_PLATFORM_RTX5)
|
||||||
osThreadId_t id = osThreadGetId();
|
return osRtxInfo.thread.run.curr->name;
|
||||||
return osThreadGetName(id);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user