Changed registerThread to accept shared_ptrs to fix some issues with polymorphism.

This commit is contained in:
dario
2023-09-29 15:12:44 +02:00
parent 54b2e4e9cd
commit 1a9a96503e
8 changed files with 28 additions and 35 deletions

View File

@@ -23,13 +23,15 @@ namespace demo
void DummyTask::init()
{
STA_DEBUG_PRINTLN("Initialized dummy task!");
}
void DummyTask::func()
{
STA_DEBUG_PRINT("Executing ");
STA_DEBUG_PRINTLN(this->getName());
// STA_DEBUG_PRINT("Executing ");
// STA_DEBUG_PRINTLN(this->getName());
osDelay(1000);
}
} // namespace demo