proceed if AP mode is set up (#6631)

This commit is contained in:
Samuel Sieb 2024-05-06 20:44:36 -07:00 committed by GitHub
parent 1e196bac98
commit 5edf4970bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -694,7 +694,7 @@ void WiFiComponent::retry_connect() {
}
bool WiFiComponent::can_proceed() {
if (!this->has_sta() || this->state_ == WIFI_COMPONENT_STATE_DISABLED) {
if (!this->has_sta() || this->state_ == WIFI_COMPONENT_STATE_DISABLED || this->ap_setup_) {
return true;
}
return this->is_connected();