Skip to content

Commit 22e3375

Browse files
committed
Turn off modem sleep
Until we can update the Arduino core 2.6.0 (which is hopefully soon) with the newer xtensa toolchain, it seems the best bet is to reduce wifi sleeping. Also high transmit power can interfere with the flash reading which can cause instability. esp8266/Arduino#5998 (comment) esp8266/Arduino#6471
1 parent 98f3d27 commit 22e3375

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

airrohr-firmware/airrohr-firmware.ino

+3-1
Original file line numberDiff line numberDiff line change
@@ -2316,7 +2316,9 @@ static void connectWifi() {
23162316
#if defined(ESP8266)
23172317
// Enforce Rx/Tx calibration
23182318
system_phy_set_powerup_option(1);
2319-
WiFi.setOutputPower(20.5f);
2319+
// 20dBM == 100mW == max tx power allowed in europe
2320+
WiFi.setOutputPower(20.0f);
2321+
WiFi.setSleepMode(WIFI_NONE_SLEEP);
23202322
WiFi.setPhyMode(WIFI_PHY_MODE_11N);
23212323
delay(100);
23222324
#endif

0 commit comments

Comments
 (0)