Skip to content

Commit 43dab9b

Browse files
committed
WIP: Attempt to set wifi db lower for pico
1 parent 6dda9d4 commit 43dab9b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/network_interfaces/ws_networking_pico.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ class ws_networking_pico : public Wippersnapper {
184184
buf[3] = (x >> 24) & 0xFF;
185185
}
186186

187-
/********************************************************/
187+
/********************************************************/
188188
/*!
189189
@brief Gets a 32-bit integer from a buffer in little-endian format.
190190
@param buf
@@ -363,6 +363,13 @@ class ws_networking_pico : public Wippersnapper {
363363
WiFi.mode(WIFI_STA);
364364
WS.feedWDT();
365365
WiFi.setTimeout(20000);
366+
WS_DEBUG_PRINT("Current WiFi TX Power: ");
367+
float currentPower = common_hal_wifi_radio_get_tx_power();
368+
WS_DEBUG_PRINTLN(currentPower);
369+
// set tx rate lower to avoid reflectivity issues
370+
setTxPower(currentPower - 4.0f);
371+
WS_DEBUG_PRINT("New WiFi TX Power: ");
372+
WS_DEBUG_PRINTLN(common_hal_wifi_radio_get_tx_power());
366373
WS.feedWDT();
367374

368375
if (strlen(_ssid) == 0) {

0 commit comments

Comments
 (0)