From a9b9b80cf72c44c98a02c45d05ef19a644365f76 Mon Sep 17 00:00:00 2001 From: pankore <86098180+pankore@users.noreply.github.com> Date: Tue, 30 May 2023 01:28:31 +0800 Subject: [PATCH] [Shell] Add vTaskDelay to release CPU usage (#26864) * [Shell] Add vTaskDelay to free cpu * add delay in matter shell loop --- src/lib/shell/MainLoopAmeba.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/shell/MainLoopAmeba.cpp b/src/lib/shell/MainLoopAmeba.cpp index 0526980e7f6080..b8476a5dd9a9f0 100644 --- a/src/lib/shell/MainLoopAmeba.cpp +++ b/src/lib/shell/MainLoopAmeba.cpp @@ -146,6 +146,7 @@ void Engine::RunMainLoop() ProcessShellLine(reinterpret_cast(line)); #endif } + vTaskDelay(pdMS_TO_TICKS(10)); // delay 10ms } }