Skip to content

Commit bb5a811

Browse files
committed
The check is unneeded.
1 parent f707608 commit bb5a811

File tree

1 file changed

+1
-3
lines changed
  • ports/espressif/common-hal/wifi

1 file changed

+1
-3
lines changed

ports/espressif/common-hal/wifi/Radio.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ void common_hal_wifi_radio_set_enabled(wifi_radio_obj_t *self, bool enabled) {
8686
if (!self->started && enabled) {
8787
ESP_ERROR_CHECK(esp_wifi_start());
8888
self->started = true;
89-
if (CIRCUITPY_WIFI_DEFAULT_TX_POWER != 20) {
90-
common_hal_wifi_radio_set_tx_power(self, CIRCUITPY_WIFI_DEFAULT_TX_POWER);
91-
}
89+
common_hal_wifi_radio_set_tx_power(self, CIRCUITPY_WIFI_DEFAULT_TX_POWER);
9290
return;
9391
}
9492
}

0 commit comments

Comments
 (0)