Skip to content

Commit

Permalink
set tx power to -8.5 db (esp32-c3)
Browse files Browse the repository at this point in the history
From espressif/arduino-esp32#6767 (comment) to ensure the board can connect to WiFi
  • Loading branch information
jblanked committed Feb 16, 2025
1 parent be0a59e commit e6d7ccb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/FlipperHTTP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ bool FlipperHTTP::connectToWifi()

WiFi.disconnect(true); // Ensure WiFi is disconnected before reconnecting
WiFi.begin(loadedSSID, loadedPassword);
#fdef BOARD_ESP32_C3
WiFi.setTxPower(WIFI_POWER_8_5dBm);
#endif

int i = 0;
while (!this->isConnectedToWifi() && i < 20)
Expand Down

0 comments on commit e6d7ccb

Please sign in to comment.