1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-03 03:42:20 +01:00
Otto Winter
2019-11-12 17:39:27 +01:00
committed by GitHub
parent 9580b13b9f
commit fad05d5a2e
6 changed files with 23 additions and 0 deletions

View File

@@ -36,6 +36,9 @@ void WiFiComponent::setup() {
if (this->has_sta()) {
this->wifi_sta_pre_setup_();
if (this->output_power_.has_value() && !this->wifi_apply_output_power_(*this->output_power_)) {
ESP_LOGV(TAG, "Setting Power Save Option failed!");
}
if (!this->wifi_apply_power_save_()) {
ESP_LOGV(TAG, "Setting Power Save Option failed!");
@@ -49,6 +52,9 @@ void WiFiComponent::setup() {
}
} else if (this->has_ap()) {
this->setup_ap_config_();
if (this->output_power_.has_value() && !this->wifi_apply_output_power_(*this->output_power_)) {
ESP_LOGV(TAG, "Setting Power Save Option failed!");
}
#ifdef USE_CAPTIVE_PORTAL
if (captive_portal::global_captive_portal != nullptr)
captive_portal::global_captive_portal->start();