summaryrefslogtreecommitdiff
path: root/esp8266
diff options
context:
space:
mode:
authorJosef Gajdusek <atx@atx.name>2015-05-05 20:06:05 +0200
committerDamien George <damien.p.george@gmail.com>2015-05-05 22:19:48 +0100
commit82d08dccc6962804fa6355e5f5380434c4003bd7 (patch)
tree66d244933770c8f2f01ce749be7d460ff9f86881 /esp8266
parent8872abcbc4107c8d3eaf148a03813e607aa30bfb (diff)
esp8266: Fix endian of address returned by esp.getaddrinfo()
Diffstat (limited to 'esp8266')
-rw-r--r--esp8266/modesp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/esp8266/modesp.c b/esp8266/modesp.c
index f5baadcbf..f86273d17 100644
--- a/esp8266/modesp.c
+++ b/esp8266/modesp.c
@@ -413,7 +413,7 @@ STATIC void esp_getaddrinfo_cb(const char *name, ip_addr_t *ipaddr, void *arg) {
tuple->items[2] = MP_OBJ_NEW_SMALL_INT(0);
tuple->items[3] = MP_OBJ_NEW_QSTR(MP_QSTR_);
tuple->items[4] = netutils_format_inet_addr(ip,
- esp_getaddrinfo_cb_struct.port, NETUTILS_BIG);
+ esp_getaddrinfo_cb_struct.port, NETUTILS_LITTLE);
call_function_2_protected(esp_getaddrinfo_cb_struct.lambda, namestr, tuple);
} else {
call_function_2_protected(esp_getaddrinfo_cb_struct.lambda, namestr, mp_const_none);