version_2.0
Dependents: cc3000_ping_demo_try_2
Fork of cc3000_hostdriver_mbedsocket by
Diff: Socket/UDPSocket.cpp
- Revision:
- 13:5e36c267e62f
- Parent:
- 11:5e3771b29385
- Child:
- 16:f3676ae62f96
--- a/Socket/UDPSocket.cpp Tue Oct 01 21:17:44 2013 +0000 +++ b/Socket/UDPSocket.cpp Wed Oct 02 15:00:07 2013 +0000 @@ -42,9 +42,7 @@ localHost.sin_addr.s_addr = 0; 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.\r\n"); -#endif + DBG_SOCKET("Failed to bind a socket (udp). Closing socket"); _cc3000_module->_socket.closesocket(_sock_fd); _sock_fd = -1; return -1; @@ -81,9 +79,7 @@ if (!_blocking) { TimeInterval timeout(_timeout); if (wait_readable(timeout) != 0) { -#if (CC3000_DEBUG == 1) - printf("DEBUG: The socket is not readable. _sock_fd: %d.\r\n", _sock_fd); -#endif + DBG_SOCKET("The socket is not readable. _sock_fd: %d", _sock_fd); return 0; } }