Skip to content

Commit

Permalink
Ethernet: deprecate MACAddress(uint8_t *mac_address) keeping reversed…
Browse files Browse the repository at this point in the history
… returned value
  • Loading branch information
pennam committed Oct 25, 2024
1 parent 7ab565e commit 1a63b34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion libraries/Ethernet/src/Ethernet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ unsigned long arduino::EthernetClass::getTime() {

void arduino::EthernetClass::MACAddress(uint8_t *mac_address)
{
macAddress(mac_address);
/* implementation in SocketHelpers.cpp
* arduino::MbedSocketClass::macAddress(uint8_t* mac, bool reversed)
*/
macAddress(mac_address, true);
}

arduino::EthernetClass Ethernet(static_cast<EthernetInterface*>(EthInterface::get_default_instance()));
2 changes: 1 addition & 1 deletion libraries/Ethernet/src/Ethernet.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class EthernetClass : public MbedSocketClass {
}
void init(uint8_t sspin = 10);

void MACAddress(uint8_t *mac_address);
void MACAddress(uint8_t *mac_address)__attribute__ ((deprecated("Use macAddress(uint8_t *mac_address)")));

int disconnect(void);
void end(void);
Expand Down

0 comments on commit 1a63b34

Please sign in to comment.