From 99eefd5cafdaed302d17a140b7c89c54aaff79e2 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sat, 4 Nov 2023 22:26:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=A5=E9=87=8D=E7=9A=84?= =?UTF-8?q?=E7=BA=BF=E7=A8=8B=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- os/zthread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }