commit | 2d26cad9a60d2ddcff784e493acb0e69dc0972c7 | [log] [tgz] |
---|---|---|
author | pankore <86098180+pankore@users.noreply.github.com> | Tue May 30 01:28:31 2023 +0800 |
committer | GitHub <noreply@github.com> | Mon May 29 13:28:31 2023 -0400 |
tree | d4895598edc800226da5fdb0f14d00825164a5db | |
parent | d0d154c17cf3132e06235176d34b14bea32c3c82 [diff] |
[Shell] Add vTaskDelay to release CPU usage (#26864) * [Shell] Add vTaskDelay to free cpu * add delay in matter shell loop
diff --git a/src/lib/shell/MainLoopAmeba.cpp b/src/lib/shell/MainLoopAmeba.cpp index 0526980..b8476a5 100644 --- a/src/lib/shell/MainLoopAmeba.cpp +++ b/src/lib/shell/MainLoopAmeba.cpp
@@ -146,6 +146,7 @@ ProcessShellLine(reinterpret_cast<intptr_t>(line)); #endif } + vTaskDelay(pdMS_TO_TICKS(10)); // delay 10ms } }