Skip to content

Commit 7fe6cfa

Browse files
committed
inclusion guard around dbm setter, for all qt py
1 parent 45af854 commit 7fe6cfa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/network_interfaces/Wippersnapper_ESP32.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,15 @@ class Wippersnapper_ESP32 : public Wippersnapper {
103103
WiFi.disconnect();
104104
delay(100);
105105

106+
// For boards with a "3D Antenna", we need to reduce the TX power
107+
// to prevent flaky operation.
108+
// NOTE: This is a known issue with the QT Py series of boards.
109+
#ifdef ARDUINO_ADAFRUIT_QTPY_ESP32S2 || \
110+
ARDUINO_ADAFRUIT_QTPY_ESP32S3_NOPSRAM || \
111+
ARDUINO_ADAFRUIT_QTPY_ESP32S3_N4R2 || ARDUINO_ADAFRUIT_QTPY_ESP32C3 || \
112+
ARDUINO_ADAFRUIT_QTPY_ESP32_PICO
106113
WiFi.setTxPower(WIFI_POWER_15dBm);
114+
#endif
107115

108116
// Perform a network scan
109117
int n = WiFi.scanNetworks();

0 commit comments

Comments
 (0)