Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1a63b34

Browse files
committedOct 25, 2024·
Ethernet: deprecate MACAddress(uint8_t *mac_address) keeping reversed returned value
1 parent 7ab565e commit 1a63b34

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
 

‎libraries/Ethernet/src/Ethernet.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ unsigned long arduino::EthernetClass::getTime() {
103103

104104
void arduino::EthernetClass::MACAddress(uint8_t *mac_address)
105105
{
106-
macAddress(mac_address);
106+
/* implementation in SocketHelpers.cpp
107+
* arduino::MbedSocketClass::macAddress(uint8_t* mac, bool reversed)
108+
*/
109+
macAddress(mac_address, true);
107110
}
108111

109112
arduino::EthernetClass Ethernet(static_cast<EthernetInterface*>(EthInterface::get_default_instance()));

‎libraries/Ethernet/src/Ethernet.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class EthernetClass : public MbedSocketClass {
8383
}
8484
void init(uint8_t sspin = 10);
8585

86-
void MACAddress(uint8_t *mac_address);
86+
void MACAddress(uint8_t *mac_address)__attribute__ ((deprecated("Use macAddress(uint8_t *mac_address)")));
8787

8888
int disconnect(void);
8989
void end(void);

0 commit comments

Comments
 (0)
Please sign in to comment.