From c69b4310c85b7f09789f75b49e706fea58e8aa7a Mon Sep 17 00:00:00 2001 From: Daniel Campora Date: Sun, 12 Apr 2015 23:55:34 +0200 Subject: cc3200: Add WLAN.config_ip(). This new method allows to assign an static IP to the device. --- cc3200/telnet/telnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cc3200/telnet') diff --git a/cc3200/telnet/telnet.c b/cc3200/telnet/telnet.c index 5d038866f..fd9180544 100644 --- a/cc3200/telnet/telnet.c +++ b/cc3200/telnet/telnet.c @@ -325,7 +325,7 @@ static bool telnet_create_socket (void) { // 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(TELNET_PORT); ASSERT (sl_Bind(telnet_data.sd, (const SlSockAddr_t *)&sServerAddress, sizeof(sServerAddress)) == SL_SOC_OK); -- cgit v1.2.3