Merge pull request #801 from Du-Chao/freertos
Set the current_thread when no FreeRTOS task was created.
This commit is contained in:
commit
8933785ab3
|
@ -501,6 +501,7 @@ static int freertos_update_threads(struct rtos *rtos)
|
||||||
LOG_ERROR("Error allocating memory for %" PRIu64 " threads", thread_list_size);
|
LOG_ERROR("Error allocating memory for %" PRIu64 " threads", thread_list_size);
|
||||||
return ERROR_FAIL;
|
return ERROR_FAIL;
|
||||||
}
|
}
|
||||||
|
rtos->current_thread = 1;
|
||||||
rtos->thread_details->threadid = 1;
|
rtos->thread_details->threadid = 1;
|
||||||
rtos->thread_details->exists = true;
|
rtos->thread_details->exists = true;
|
||||||
rtos->thread_details->extra_info_str = NULL;
|
rtos->thread_details->extra_info_str = NULL;
|
||||||
|
|
Loading…
Reference in New Issue