Commit 9c388f66 authored by Damien George's avatar Damien George
Browse files

esp8266/modesp: Use mp_obj_str_get_str instead of mp_obj_str_get_data.

parent b5684483
......@@ -466,8 +466,7 @@ STATIC void esp_getaddrinfo_cb(const char *name, ip_addr_t *ipaddr, void *arg) {
STATIC mp_obj_t esp_getaddrinfo(mp_obj_t host_in, mp_obj_t port_in,
mp_obj_t lambda_in) {
mp_uint_t hlen;
const char *host = mp_obj_str_get_data(host_in, &hlen);
const char *host = mp_obj_str_get_str(host_in);
ip_addr_t ipaddr;
esp_getaddrinfo_cb_struct.lambda = lambda_in;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment