mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 05:24:53 +01:00
Security improvement: Support wifi ap_timeout=0s (disable) (#5887)
This commit is contained in:
parent
657a7070cb
commit
b8fe4f8d56
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ void WiFiComponent::loop() {
|
|||
|
||||
#ifdef USE_WIFI_AP
|
||||
if (this->has_ap() && !this->ap_setup_) {
|
||||
if (now - this->last_connected_ > this->ap_timeout_) {
|
||||
if (this->ap_timeout_ != 0 && (now - this->last_connected_ > this->ap_timeout_)) {
|
||||
ESP_LOGI(TAG, "Starting fallback AP!");
|
||||
this->setup_ap_config_();
|
||||
#ifdef USE_CAPTIVE_PORTAL
|
||||
|
|
Loading…
Reference in a new issue