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 Oct 12, 2023
1 parent 7af895a commit 1153735
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 1153735

Please sign in to comment.