1
0
mirror of https://github.com/armink/CmBacktrace.git synced 2025-01-08 20:16:17 +08:00

更正RTX5线程名获取方式

This commit is contained in:
yangpeng 2023-09-12 10:54:00 +08:00
parent 427197ef1b
commit a5cd389b54

View File

@ -243,8 +243,7 @@ static const char *get_cur_thread_name(void) {
#elif (CMB_OS_PLATFORM_TYPE == CMB_OS_PLATFORM_FREERTOS)
return vTaskName();
#elif (CMB_OS_PLATFORM_TYPE == CMB_OS_PLATFORM_RTX5)
osThreadId_t id = osThreadGetId();
return osThreadGetName(id);
return osRtxInfo.thread.run.curr->name;
#endif
}