Add small delay before setting up app in safe mode (#3323)

This commit is contained in:
Jesse Hills 2022-03-23 11:12:22 +13:00 committed by GitHub
parent 1496bc1b07
commit 58b70b42dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -473,6 +473,8 @@ bool OTAComponent::should_enter_safe_mode(uint8_t num_attempts, uint32_t enable_
App.reboot();
});
// Delay here to allow power to stabilise before Wi-Fi/Ethernet is initialised.
delay(100); // NOLINT
App.setup();
ESP_LOGI(TAG, "Waiting for OTA attempt.");