summaryrefslogtreecommitdiff
path: root/src/tasks
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-08-07 18:22:15 +1000
committerjacqueline <me@jacqueline.id.au>2023-08-07 18:22:15 +1000
commitc38754401b95642b5e61fd273c2adf7d76a829fe (patch)
tree2dc23008f6b2b471ce54fbc61d96b7b8c508b0dd /src/tasks
parenta66c3428063017f2233b6b15d5ce6c920d5c9095 (diff)
downloadtangara-fw-c38754401b95642b5e61fd273c2adf7d76a829fe.tar.gz
Downscaling working!
Diffstat (limited to 'src/tasks')
-rw-r--r--src/tasks/tasks.hpp9
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(),