diff options
author | Daniel Campora <daniel@wipy.io> | 2015-04-12 23:55:34 +0200 |
---|---|---|
committer | Daniel Campora <daniel@wipy.io> | 2015-04-13 00:02:56 +0200 |
commit | c69b4310c85b7f09789f75b49e706fea58e8aa7a (patch) | |
tree | 7680324c6d6d440b369778c132e5ece1108e1c8b /cc3200/ftp | |
parent | b21786947fabbdef76824d899263bec51779738b (diff) | |
download | micropython-c69b4310c85b7f09789f75b49e706fea58e8aa7a.tar.gz micropython-c69b4310c85b7f09789f75b49e706fea58e8aa7a.zip |
cc3200: Add WLAN.config_ip().
This new method allows to assign an static IP to the device.
Diffstat (limited to 'cc3200/ftp')
-rw-r--r-- | cc3200/ftp/ftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc3200/ftp/ftp.c b/cc3200/ftp/ftp.c index b0e17a394d..fb10fc7791 100644 --- a/cc3200/ftp/ftp.c +++ b/cc3200/ftp/ftp.c @@ -435,7 +435,7 @@ static bool ftp_create_listening_socket (_i16 *sd, _u16 port, _u8 backlog) { // Bind the socket to a port number sServerAddress.sin_family = AF_INET; - sServerAddress.sin_addr.s_addr = htonl(INADDR_ANY); + sServerAddress.sin_addr.s_addr = INADDR_ANY; sServerAddress.sin_port = htons(port); ASSERT (sl_Bind(_sd, (const SlSockAddr_t *)&sServerAddress, sizeof(sServerAddress)) == SL_SOC_OK); |