From 4f133876921cccff7e700c0d843f5e617b042553 Mon Sep 17 00:00:00 2001 From: dario Date: Wed, 24 Jan 2024 21:43:21 +0100 Subject: [PATCH] bugfix for thread starting --- src/thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thread.cpp b/src/thread.cpp index 16ebd66..7004578 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -25,7 +25,7 @@ namespace sta void RtosThread::start() { // Check if there is no instance that is currently running. - STA_ASSERT(instance_ != NULL); + STA_ASSERT(instance_ == NULL); instance_ = osThreadNew(entry_point, this, &attribs_); STA_ASSERT(instance_ != NULL);