Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
9c388f66
Commit
9c388f66
authored
Mar 26, 2017
by
Damien George
Browse files
esp8266/modesp: Use mp_obj_str_get_str instead of mp_obj_str_get_data.
parent
b5684483
Changes
1
Hide whitespace changes
Inline
Side-by-side
esp8266/modesp.c
View file @
9c388f66
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment