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
This commit is contained in:
atc1441
2024-01-15 16:39:24 +01:00
parent 7703f6ce6c
commit 4edba16674

View File

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