From 7703f6ce6c64abf02e5dfda5a8d6d7fc7e4d40aa Mon Sep 17 00:00:00 2001 From: atc1441 Date: Mon, 15 Jan 2024 15:37:24 +0100 Subject: [PATCH] Fixed interrupted flashing bug While the C6 would be flashed the recovery would trigger as no Ping was received from the RF-AP --- ESP32_AP-Flasher/src/serialap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ESP32_AP-Flasher/src/serialap.cpp b/ESP32_AP-Flasher/src/serialap.cpp index b936310c..3dc3323b 100644 --- a/ESP32_AP-Flasher/src/serialap.cpp +++ b/ESP32_AP-Flasher/src/serialap.cpp @@ -895,7 +895,7 @@ void APTask(void* parameter) { uint8_t attempts = 0; while (1) { - if (millis() - lastAPActivity > AP_ACTIVITY_MAX_INTERVAL) { + if (((apInfo.state == AP_STATE_ONLINE)||(apInfo.state == AP_STATE_FAILED)) && (millis() - lastAPActivity > AP_ACTIVITY_MAX_INTERVAL)) { bool reply = sendPing(); if (!reply) { attempts++;