diff options
| author | BennyE <bennye_hh@posteo.net> | 2020-12-24 15:40:53 +0100 |
|---|---|---|
| committer | BennyE <bennye_hh@posteo.net> | 2020-12-24 15:40:53 +0100 |
| commit | 64bb055700d425617adff7748890354d925248fd (patch) | |
| tree | 01fb1b97124297c0798585159be7095fa653b1c4 /ports | |
| parent | 1a6b1b1953b20a0ddd8b5f76d6dc366399ea1aee (diff) | |
Updating comment to reflect feedback of espressif from IDFGH-4486 -> works correct as per the protocol
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/esp32s2/common-hal/wifi/Network.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ports/esp32s2/common-hal/wifi/Network.c b/ports/esp32s2/common-hal/wifi/Network.c index be4935dba..2674df065 100644 --- a/ports/esp32s2/common-hal/wifi/Network.c +++ b/ports/esp32s2/common-hal/wifi/Network.c @@ -51,8 +51,6 @@ mp_obj_t common_hal_wifi_network_get_channel(wifi_network_obj_t *self) { mp_obj_t common_hal_wifi_network_get_country(wifi_network_obj_t *self) { const char* cstr = (const char*) self->record.country.cc; - // To address esp_wifi_get_country() returned/set wifi_country_t structure - // doesn't follow the documented behaviour (IDFGH-4486) #6315 - // 2 instead of strlen(cstr) which would be 6 and contain full element + // 2 instead of strlen(cstr) as this gives us only the country-code return mp_obj_new_str(cstr, 2); } |
