From 502c1d6ab8f9655190b00e9b1729c1fc9b9aaefc Mon Sep 17 00:00:00 2001 From: Christoph Stoiber Date: Fri, 18 Sep 2026 13:05:00 +0200 Subject: [PATCH] Restore wlan power --- src/scale.cpp | 2 +- src/wlan.cpp | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/scale.cpp b/src/scale.cpp index bd5d212..ed5797b 100644 --- a/src/scale.cpp +++ b/src/scale.cpp @@ -262,7 +262,7 @@ bool deepSearchScale() { // are not reliable in detecting a missing chip // these tests work even without pull-up resistor const uint32_t timeout = 1000; // 1 second timeout for waiting for the chip to respond - const int samples = 10; + const int samples = 10; pinMode(LOADCELL_DOUT_PIN, INPUT); pinMode(LOADCELL_SCK_PIN, OUTPUT); diff --git a/src/wlan.cpp b/src/wlan.cpp index 0c17a66..34f64e6 100644 --- a/src/wlan.cpp +++ b/src/wlan.cpp @@ -32,11 +32,7 @@ void wifiSettings() { // Maximale Sendeleistung. 17dBm war ein Kompromiss gegen Hitzeprobleme, // führte bei marginalem Empfang aber zu AP-seitigen Auth-/Assoc-Kicks // (reason=2/4/9/202). Bei Verdacht auf Überhitzung wieder auf 17dBm zurück. ESP32-S3 hat Proleme mit 19,5dBm, daher hier 8,5dBm. - #if CONFIG_IDF_TARGET_ESP32S3 - WiFi.setTxPower(WIFI_POWER_8_5dBm); - #else WiFi.setTxPower(WIFI_POWER_19_5dBm); - #endif // Hinweis: Kein esp_wifi_set_rssi_threshold() mehr. // Der vorherige Wert (-80 dBm) löste in Single-AP-Heimnetzen häufige