From ebfbee903bfe823aebbd6b78513e4b954d5b3f8e Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Sat, 4 Dec 2021 17:40:19 +0100 Subject: [PATCH] Idle when thread is not started --- src/espasyncota.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/espasyncota.cpp b/src/espasyncota.cpp index b43a417..9871d5b 100644 --- a/src/espasyncota.cpp +++ b/src/espasyncota.cpp @@ -130,7 +130,7 @@ OtaCloudUpdateStatus EspAsyncOta::status() const { if (const auto bits = m_eventGroup.getBits(); !(bits & TASK_RUNNING_BIT)) { - return OtaCloudUpdateStatus::NotReady; + return OtaCloudUpdateStatus::Idle; } else if (bits & (START_REQUEST_BIT | REQUEST_RUNNING_BIT)) {