Skip to content

Commit 817b47a

Browse files
committed
Add forgotten mac parameter
1 parent b04124a commit 817b47a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/Ethernet/src/Ethernet.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,21 @@ int arduino::EthernetClass::begin(uint8_t *mac, IPAddress ip) {
3434
IPAddress dns = ip;
3535
dns[3] = 1;
3636

37-
auto ret = begin(ip, dns);
37+
auto ret = begin(mac, ip, dns);
3838
return ret;
3939
}
4040

4141
int arduino::EthernetClass::begin(uint8_t *mac, IPAddress ip, IPAddress dns) {
4242
IPAddress gateway = ip;
4343
gateway[3] = 1;
4444

45-
auto ret = begin(ip, dns, gateway);
45+
auto ret = begin(mac, ip, dns, gateway);
4646
return ret;
4747
}
4848

4949
int arduino::EthernetClass::begin(uint8_t *mac, IPAddress ip, IPAddress dns, IPAddress gateway) {
5050
IPAddress subnet(255, 255, 255, 0);
51-
auto ret = begin(ip, dns, gateway, subnet);
51+
auto ret = begin(mac, ip, dns, gateway, subnet);
5252
return ret;
5353
}
5454

0 commit comments

Comments
 (0)