Merge pull request #801 from Du-Chao/freertos

Set the current_thread when no FreeRTOS task was created.
This commit is contained in:
Tim Newsome 2023-02-20 08:59:40 -08:00 committed by GitHub
commit 8933785ab3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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;