mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-18 12:54:25 +01:00
Removed typos in EthernetClient.cpp
This commit is contained in:
parent
e5805926d0
commit
94fcb02e0f
@ -150,7 +150,7 @@ void EthernetClient::stop() {
|
||||
|
||||
uint8_t EthernetClient::connected() {
|
||||
if (_sock == MAX_SOCK_NUM) return 0;
|
||||
|
||||
|
||||
uint8_t s = status();
|
||||
return !(s == SnSR::LISTEN || s == SnSR::CLOSED || s == SnSR::FIN_WAIT ||
|
||||
(s == SnSR::CLOSE_WAIT && !available()));
|
||||
@ -172,6 +172,6 @@ bool EthernetClient::operator==(const EthernetClient& rhs) {
|
||||
return _sock == rhs._sock && _sock != MAX_SOCK_NUM && rhs._sock != MAX_SOCK_NUM;
|
||||
}
|
||||
|
||||
+uint8_t EthernetClient::getSocketNumber () {
|
||||
+ return _sock;
|
||||
+}
|
||||
uint8_t EthernetClient::getSocketNumber() {
|
||||
return _sock;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user