diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-08-07 18:22:15 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-08-07 18:22:15 +1000 |
| commit | c38754401b95642b5e61fd273c2adf7d76a829fe (patch) | |
| tree | 2dc23008f6b2b471ce54fbc61d96b7b8c508b0dd /src/tasks/tasks.hpp | |
| parent | a66c3428063017f2233b6b15d5ce6c920d5c9095 (diff) | |
| download | tangara-fw-c38754401b95642b5e61fd273c2adf7d76a829fe.tar.gz | |
Downscaling working!
Diffstat (limited to 'src/tasks/tasks.hpp')
| -rw-r--r-- | src/tasks/tasks.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tasks/tasks.hpp b/src/tasks/tasks.hpp index fe65ffcc..a0c201d5 100644 --- a/src/tasks/tasks.hpp +++ b/src/tasks/tasks.hpp @@ -59,13 +59,14 @@ template <Type t> auto StartPersistent(const std::function<void(void)>& fn) -> void { StaticTask_t* task_buffer = new StaticTask_t; cpp::span<StackType_t> stack = AllocateStack<t>(); - xTaskCreateStatic(&PersistentMain, Name<t>().c_str(), - stack.size(), new std::function<void(void)>(fn), - Priority<t>(), stack.data(), task_buffer); + xTaskCreateStatic(&PersistentMain, Name<t>().c_str(), stack.size(), + new std::function<void(void)>(fn), Priority<t>(), + stack.data(), task_buffer); } template <Type t> -auto StartPersistent(BaseType_t core, const std::function<void(void)>& fn) -> void { +auto StartPersistent(BaseType_t core, const std::function<void(void)>& fn) + -> void { StaticTask_t* task_buffer = new StaticTask_t; cpp::span<StackType_t> stack = AllocateStack<t>(); xTaskCreateStaticPinnedToCore(&PersistentMain, Name<t>().c_str(), |
