esp32C3 wifi initializaton: set power after starting wifi

This commit is contained in:
MichaelDvP
2022-10-11 14:05:29 +02:00
parent f11dc9bc25
commit 761df2b4cc
2 changed files with 4 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ void APSettingsService::startAP() {
WiFi.softAPConfig(_state.localIP, _state.gatewayIP, _state.subnetMask);
esp_wifi_set_bandwidth((wifi_interface_t)ESP_IF_WIFI_AP, WIFI_BW_HT20);
WiFi.softAP(_state.ssid.c_str(), _state.password.c_str(), _state.channel, _state.ssidHidden, _state.maxClients);
#ifdef BOARD_C3_MINI_V1
#if CONFIG_IDF_TARGET_ESP32C3
WiFi.setTxPower(WIFI_POWER_8_5dBm); // https://www.wemos.cc/en/latest/c3/c3_mini_1_0_0.html#about-wifi
#endif
if (!_dnsServer) {