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 Jul 31, 2023
1 parent 101c5c4 commit 4540056
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 4540056

Please sign in to comment.