Adjusted Initialization of MAC address
Fork of WIZnetInterface by
Diff: Socket/TCPSocketConnection.cpp
- Revision:
- 30:b67bcc6ee0bb
- Parent:
- 0:6f28332c466f
--- a/Socket/TCPSocketConnection.cpp Tue Nov 17 06:35:55 2015 +0000
+++ b/Socket/TCPSocketConnection.cpp Thu Jun 29 18:58:37 2017 +0000
@@ -34,14 +34,14 @@
if (_sock_fd < 0) {
_sock_fd = eth->new_socket();
if (_sock_fd < 0) {
- return -1;
+ return -2;
}
}
if (set_address(host, port) != 0) {
- return -1;
+ return -3;
}
if (!eth->connect(_sock_fd, get_address(), port)) {
- return -1;
+ return -4;
}
set_blocking(false);
// add code refer from EthernetInterface.
