diff --git a/library/core/task/task.hpp b/library/core/task/task.hpp index 77254e0eb91a124b8fc6916e9e9b3a1895c4654e..afe4deb4b854cd56bbe86de7a2ac8d580e405666 100644 --- a/library/core/task/task.hpp +++ b/library/core/task/task.hpp @@ -1,3 +1,5 @@ +#pragma once + /** * FreeRTOS Includes */ @@ -17,15 +19,13 @@ class Task : public ITask { public: constexpr static uint32_t DEFAULT_PRIORITY = (configMAX_PRIORITIES - 1); - Task(const char* name, uint32_t priority = DEFAULT_PRIORITY) - : m_name(name), m_priority(priority) {} + Task(const char* name, uint32_t priority = DEFAULT_PRIORITY) : m_name(name), m_priority(priority) {} virtual ~Task() {} virtual void start() { - xTaskCreateStatic(Task::runTask, this->m_name, this->stack.size(), - (void*)this, this->m_priority, this->stack.data(), - &this->buffer); + xTaskCreateStatic(Task::runTask, this->m_name, this->stack.size(), (void*)this, this->m_priority, + this->stack.data(), &this->buffer); } static void delayTick(int ticks) { vTaskDelay(ticks); }