Skip to content
Snippets Groups Projects
Commit feef8961 authored by Gaya Mehenni's avatar Gaya Mehenni
Browse files

fix pragma once

parent 285030ac
No related branches found
No related tags found
No related merge requests found
Pipeline #5817 failed
#pragma once
/** /**
* FreeRTOS Includes * FreeRTOS Includes
*/ */
...@@ -17,15 +19,13 @@ class Task : public ITask { ...@@ -17,15 +19,13 @@ class Task : public ITask {
public: public:
constexpr static uint32_t DEFAULT_PRIORITY = (configMAX_PRIORITIES - 1); constexpr static uint32_t DEFAULT_PRIORITY = (configMAX_PRIORITIES - 1);
Task(const char* name, uint32_t priority = DEFAULT_PRIORITY) Task(const char* name, uint32_t priority = DEFAULT_PRIORITY) : m_name(name), m_priority(priority) {}
: m_name(name), m_priority(priority) {}
virtual ~Task() {} virtual ~Task() {}
virtual void start() { virtual void start() {
xTaskCreateStatic(Task::runTask, this->m_name, this->stack.size(), xTaskCreateStatic(Task::runTask, this->m_name, this->stack.size(), (void*)this, this->m_priority,
(void*)this, this->m_priority, this->stack.data(), this->stack.data(), &this->buffer);
&this->buffer);
} }
static void delayTick(int ticks) { vTaskDelay(ticks); } static void delayTick(int ticks) { vTaskDelay(ticks); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment