diff options
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(), |
