File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ class ws_networking_pico : public Wippersnapper {
184
184
buf[3 ] = (x >> 24 ) & 0xFF ;
185
185
}
186
186
187
- /* *******************************************************/
187
+ /* *******************************************************/
188
188
/* !
189
189
@brief Gets a 32-bit integer from a buffer in little-endian format.
190
190
@param buf
@@ -363,6 +363,13 @@ class ws_networking_pico : public Wippersnapper {
363
363
WiFi.mode (WIFI_STA);
364
364
WS.feedWDT ();
365
365
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 ());
366
373
WS.feedWDT ();
367
374
368
375
if (strlen (_ssid) == 0 ) {
You can’t perform that action at this time.
0 commit comments