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 Feb 22, 2024
1 parent ed67cbd commit 0b4957b
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 0b4957b

Please sign in to comment.