diff --git a/os/zthread.cpp b/os/zthread.cpp index 6780c10..1064277 100644 --- a/os/zthread.cpp +++ b/os/zthread.cpp @@ -86,7 +86,7 @@ void ZThread::start(zosthread_cb_t cb, zosthread_cb_t exitcb) { xSemaphoreTake(m_lock, portMAX_DELAY); m_threadisworkingFlagCallSide = true; // xEventGroupSetBits(m_zthreadstartworkevent, 0x01); - while (m_status != kidle) { + while (m_status == kidle) { xTaskNotifyGive(m_defaultTaskHandle); vTaskDelay(1); }