Skip to content

Commit

Permalink
C3 all as v1, add partition.bin
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDvP committed Nov 1, 2022
1 parent b6b57fc commit 281e83a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Binary file added esp32_factory_4M.bin
Binary file not shown.
1 change: 0 additions & 1 deletion lib/framework/APSettingsService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ void APSettingsService::startAP() {
// 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);
#if CONFIG_IDF_TARGET_ESP32C3
// #ifdef BOARD_C3_MINI_V1
WiFi.setTxPower(WIFI_POWER_8_5dBm); // https://www.wemos.cc/en/latest/c3/c3_mini_1_0_0.html#about-wifi
#endif
if (!_dnsServer) {
Expand Down
4 changes: 2 additions & 2 deletions lib/framework/NetworkSettingsService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ void NetworkSettingsService::manageSTA() {
WiFi.begin(_state.ssid.c_str(), _state.password.c_str()); // attempt to connect to the network
esp_wifi_set_max_tx_power(networkSettings.tx_power * 4); // set power after wifi is startet for C3
});
#ifdef BOARD_C3_MINI_V1
// v1 needs this value, see https://github.com/emsesp/EMS-ESP32/pull/620#discussion_r993173979
#if CONFIG_IDF_TARGET_ESP32C3
// Lolin Mini C3 v1 needs this value, see https://github.com/emsesp/EMS-ESP32/pull/620#discussion_r993173979
WiFi.setTxPower(WIFI_POWER_8_5dBm); // https://www.wemos.cc/en/latest/c3/c3_mini_1_0_0.html#about-wifi
#endif
}
Expand Down

0 comments on commit 281e83a

Please sign in to comment.