Skip to content

Commit a658007

Browse files
todbotdhalbert
andauthored
Update ports/espressif/common-hal/wifi/Radio.c
Co-authored-by: Dan Halbert <[email protected]>
1 parent 22e061b commit a658007

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ mp_float_t common_hal_wifi_radio_get_tx_power(wifi_radio_obj_t *self) {
146146
}
147147

148148
void common_hal_wifi_radio_set_tx_power(wifi_radio_obj_t *self, const mp_float_t tx_power) {
149-
esp_wifi_set_max_tx_power(tx_power * 4.0);
149+
esp_wifi_set_max_tx_power(tx_power * 4.0f);
150150
}
151151

152152
mp_obj_t common_hal_wifi_radio_get_mac_address_ap(wifi_radio_obj_t *self) {

0 commit comments

Comments
 (0)