bugfix for thread starting

This commit is contained in:
dario 2024-01-24 21:43:21 +01:00
parent 3feedc948f
commit 4f13387692

View File

@ -25,7 +25,7 @@ namespace sta
void RtosThread::start() void RtosThread::start()
{ {
// Check if there is no instance that is currently running. // Check if there is no instance that is currently running.
STA_ASSERT(instance_ != NULL); STA_ASSERT(instance_ == NULL);
instance_ = osThreadNew(entry_point, this, &attribs_); instance_ = osThreadNew(entry_point, this, &attribs_);
STA_ASSERT(instance_ != NULL); STA_ASSERT(instance_ != NULL);