Fixed interrupted flashing bug

While the C6 would be flashed the recovery would trigger as no Ping was received from the RF-AP
This commit is contained in:
atc1441
2024-01-15 15:37:24 +01:00
parent f00761db94
commit 7703f6ce6c

View File

@@ -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++;