Skip to content

Commit

Permalink
[Shell] Add vTaskDelay to release CPU usage (#26864)
Browse files Browse the repository at this point in the history
* [Shell] Add vTaskDelay to free cpu

* add delay in matter shell loop
  • Loading branch information
pankore authored and pull[bot] committed Sep 12, 2023
1 parent dca6743 commit 2521876
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/shell/MainLoopAmeba.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ void Engine::RunMainLoop()
ProcessShellLine(reinterpret_cast<intptr_t>(line));
#endif
}
vTaskDelay(pdMS_TO_TICKS(10)); // delay 10ms
}
}

Expand Down

0 comments on commit 2521876

Please sign in to comment.