summaryrefslogtreecommitdiff
path: root/extmod/network_esp_hosted.c
diff options
context:
space:
mode:
Diffstat (limited to 'extmod/network_esp_hosted.c')
-rw-r--r--extmod/network_esp_hosted.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/network_esp_hosted.c b/extmod/network_esp_hosted.c
index 0747343d8..04cfc36b3 100644
--- a/extmod/network_esp_hosted.c
+++ b/extmod/network_esp_hosted.c
@@ -230,7 +230,7 @@ static mp_obj_t network_esp_hosted_config(size_t n_args, const mp_obj_t *args, m
case MP_QSTR_essid: {
esp_hosted_netinfo_t netinfo;
esp_hosted_wifi_netinfo(&netinfo);
- return mp_obj_new_str(netinfo.ssid, strlen(netinfo.ssid));
+ return mp_obj_new_str_from_cstr(netinfo.ssid);
}
case MP_QSTR_security: {
esp_hosted_netinfo_t netinfo;