Skip to content

Commit 321c2fb

Browse files
authored
Merge pull request #841 from trik/ethernet_begin_fix
fix(Ethernet): missing return statement in begin with mac, timeout and responseTimeout
2 parents d63f3ab + 6439037 commit 321c2fb

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
@@ -9,7 +9,7 @@ int arduino::EthernetClass::begin(uint8_t *mac, unsigned long timeout, unsigned
99
if (eth_if == nullptr) return 0;
1010
}
1111
eth_if->set_dhcp(true);
12-
_begin(mac, timeout, responseTimeout);
12+
return _begin(mac, timeout, responseTimeout);
1313
}
1414

1515
int arduino::EthernetClass::_begin(uint8_t *mac, unsigned long timeout, unsigned long responseTimeout) {

0 commit comments

Comments
 (0)