From ac268f0f731abac22be80b4340aadec1e4297aef Mon Sep 17 00:00:00 2001 From: proddy Date: Mon, 5 Jul 2021 21:44:04 +0200 Subject: [PATCH] lower WiFi tx when using -DEMSESP_WIFI_TWEAK --- src/system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system.cpp b/src/system.cpp index e60012370..a97812312 100644 --- a/src/system.cpp +++ b/src/system.cpp @@ -240,7 +240,7 @@ void System::wifi_tweak() { // WIFI_POWER_2dBm = 8,// 2dBm // WIFI_POWER_MINUS_1dBm = -4// -1dBm wifi_power_t p1 = WiFi.getTxPower(); - (void)WiFi.setTxPower(WIFI_POWER_19_5dBm); + (void)WiFi.setTxPower(WIFI_POWER_17dBm); wifi_power_t p2 = WiFi.getTxPower(); bool s1 = WiFi.getSleep(); WiFi.setSleep(false); // turn off sleep - WIFI_PS_NONE