Skip to content

Commit

Permalink
Fix compatibility with Ethernet.begin(nullptr) by removing begin(cons…
Browse files Browse the repository at this point in the history
…t char* hostname) method.
  • Loading branch information
Channel59 committed Jul 9, 2024
1 parent 74a9a6d commit e4bec35
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions libraries/Ethernet/src/Ethernet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ int arduino::EthernetClass::setHostname(const char* hostname) {
return 1;
}

int arduino::EthernetClass::begin(const char* hostname) {
eth_if->set_hostname(hostname);
auto ret = begin();
return ret;
}

int arduino::EthernetClass::begin(uint8_t *mac, IPAddress ip) {
IPAddress dns = ip;
dns[3] = 1;
Expand Down
1 change: 0 additions & 1 deletion libraries/Ethernet/src/Ethernet.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ class EthernetClass : public MbedSocketClass {
// gain the rest of the configuration through DHCP.
// Returns 0 if the DHCP configuration failed, and 1 if it succeeded
int begin(uint8_t *mac = nullptr, unsigned long timeout = 60000, unsigned long responseTimeout = 4000);
int begin(const char* hostname);
EthernetLinkStatus linkStatus();
EthernetHardwareStatus hardwareStatus();

Expand Down

0 comments on commit e4bec35

Please sign in to comment.