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

Co-authored-by: Dan Halbert <halbert@halwitz.org>
This commit is contained in:
Tod Kurt 2022-07-09 22:17:18 -07:00 committed by GitHub
parent 98692150ac
commit 22e061ba35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,7 +145,7 @@ mp_float_t common_hal_wifi_radio_get_tx_power(wifi_radio_obj_t *self) {
return tx_power / 4.0f;
}
void common_hal_wifi_radio_set_tx_power(wifi_radio_obj_t *self, const float tx_power) {
void common_hal_wifi_radio_set_tx_power(wifi_radio_obj_t *self, const mp_float_t tx_power) {
esp_wifi_set_max_tx_power(tx_power * 4.0);
}