version_2.0
Dependents: cc3000_ping_demo_try_2
Fork of cc3000_hostdriver_mbedsocket by
Diff: Socket/UDPSocket.cpp
- Revision:
- 11:5e3771b29385
- Parent:
- 10:7069c5f1e6f4
- Child:
- 12:1c2a856c618a
- Child:
- 13:5e36c267e62f
diff -r 7069c5f1e6f4 -r 5e3771b29385 Socket/UDPSocket.cpp --- a/Socket/UDPSocket.cpp Tue Oct 01 04:41:47 2013 +0000 +++ b/Socket/UDPSocket.cpp Tue Oct 01 21:17:44 2013 +0000 @@ -43,7 +43,7 @@ if (_cc3000_module->_socket.bind(_sock_fd, (sockaddr *)&localHost, sizeof(sockaddr_in)) != 0) { #if (CC3000_DEBUG == 1) - printf("DEBUG: Failed to bind a socket (udp). Closing socket.\n"); + printf("DEBUG: Failed to bind a socket (udp). Closing socket.\r\n"); #endif _cc3000_module->_socket.closesocket(_sock_fd); _sock_fd = -1; @@ -82,7 +82,7 @@ TimeInterval timeout(_timeout); if (wait_readable(timeout) != 0) { #if (CC3000_DEBUG == 1) - printf("DEBUG: The socket is not readable. _sock_fd: %d.\n", _sock_fd); + printf("DEBUG: The socket is not readable. _sock_fd: %d.\r\n", _sock_fd); #endif return 0; }