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 {
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 ) {
You can’t perform that action at this time.
0 commit comments