Skip to content

Commit ddef82e

Browse files
committed
Ethernet: begin() should return 1 on success
1 parent cd0b758 commit ddef82e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/Ethernet/src/Ethernet.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ int arduino::EthernetClass::begin(uint8_t *mac, unsigned long timeout, unsigned
2727
delay(10);
2828
}
2929

30-
return (linkStatus() != LinkON ? 1 : 0);
30+
return (linkStatus() == LinkON ? 1 : 0);
3131
}
3232

3333
void arduino::EthernetClass::end() {

0 commit comments

Comments
 (0)