Skip to content

Commit 82d08dc

Browse files
atxdpgeorge
authored andcommitted
esp8266: Fix endian of address returned by esp.getaddrinfo()
1 parent 8872abc commit 82d08dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

esp8266/modesp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ STATIC void esp_getaddrinfo_cb(const char *name, ip_addr_t *ipaddr, void *arg) {
413413
tuple->items[2] = MP_OBJ_NEW_SMALL_INT(0);
414414
tuple->items[3] = MP_OBJ_NEW_QSTR(MP_QSTR_);
415415
tuple->items[4] = netutils_format_inet_addr(ip,
416-
esp_getaddrinfo_cb_struct.port, NETUTILS_BIG);
416+
esp_getaddrinfo_cb_struct.port, NETUTILS_LITTLE);
417417
call_function_2_protected(esp_getaddrinfo_cb_struct.lambda, namestr, tuple);
418418
} else {
419419
call_function_2_protected(esp_getaddrinfo_cb_struct.lambda, namestr, mp_const_none);

0 commit comments

Comments
 (0)