We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5043e7 commit d2d9e91Copy full SHA for d2d9e91
EthernetClient.cpp
@@ -41,7 +41,7 @@ int EthernetClient::connect(IPAddress ip, uint16_t port) {
41
42
for (int i = 0; i < MAX_SOCK_NUM; i++) {
43
uint8_t s = W5100.readSnSR(i);
44
- if (s == SnSR::CLOSED || s == SnSR::FIN_WAIT) {
+ if (s == SnSR::CLOSED || s == SnSR::FIN_WAIT || s == SnSR::CLOSE_WAIT) {
45
_sock = i;
46
break;
47
}
0 commit comments