From 4edba166745a612dad898e53b34fcc215a3426e7 Mon Sep 17 00:00:00 2001 From: atc1441 Date: Mon, 15 Jan 2024 16:39:24 +0100 Subject: [PATCH] Another flashing Bug fix In case the flashing of the C6 is started before the full Boot sequence the AP will end in a failed state --- ESP32_AP-Flasher/src/serialap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ESP32_AP-Flasher/src/serialap.cpp b/ESP32_AP-Flasher/src/serialap.cpp index 3dc3323b..c415c8ce 100644 --- a/ESP32_AP-Flasher/src/serialap.cpp +++ b/ESP32_AP-Flasher/src/serialap.cpp @@ -821,7 +821,8 @@ void APTask(void* parameter) { #ifdef HAS_RGB_LED showColorPattern(CRGB::Red, CRGB::Yellow, CRGB::Red); #endif - setAPstate(false, AP_STATE_FAILED); + if(apInfo.state != AP_STATE_FLASHING)// In case we are flashing already we do not want to end in a failed AP + setAPstate(false, AP_STATE_FAILED); } else { // AP unavailable, maybe time to flash? setAPstate(false, AP_STATE_OFFLINE);