lib/netutils: Update for changes to mp_obj_str_get_data.
This commit is contained in:
parent
204ded848e
commit
3022e00bbf
@ -56,7 +56,7 @@ mp_obj_t netutils_format_inet_addr(uint8_t *ip, mp_uint_t port, netutils_endian_
|
||||
}
|
||||
|
||||
void netutils_parse_ipv4_addr(mp_obj_t addr_in, uint8_t *out_ip, netutils_endian_t endian) {
|
||||
mp_uint_t addr_len;
|
||||
size_t addr_len;
|
||||
const char *addr_str = mp_obj_str_get_data(addr_in, &addr_len);
|
||||
if (addr_len == 0) {
|
||||
// special case of no address given
|
||||
|
Loading…
Reference in New Issue
Block a user