diff --git a/ports/esp8266/modnetwork.c b/ports/esp8266/modnetwork.c index ec62528a08..29bdd3a1b7 100644 --- a/ports/esp8266/modnetwork.c +++ b/ports/esp8266/modnetwork.c @@ -410,6 +410,11 @@ STATIC mp_obj_t esp_config(size_t n_args, const mp_obj_t *args, mp_map_t *kwargs wifi_set_phy_mode(mp_obj_get_int(kwargs->table[i].value)); break; } + case MP_QSTR_txpower: { + int8_t power = mp_obj_get_float(kwargs->table[i].value) * 4; + system_phy_set_max_tpw(power); + break; + } default: goto unknown; }