Skip to content

Commit

Permalink
[Shell] Add vTaskDelay to free cpu
Browse files Browse the repository at this point in the history
  • Loading branch information
pankore committed May 26, 2023
1 parent ad5253a commit 0314456
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/platform/ameba/shell/launch_shell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ namespace {

void MatterShellTask(void * args)
{
const TickType_t xDelay = 1000 / portTICK_PERIOD_MS;
chip::Shell::Engine::Root().RunMainLoop();
vTaskDelay(xDelay);
}

} // namespace
Expand Down

0 comments on commit 0314456

Please sign in to comment.