Skip to content

Commit 04b572e

Browse files
authored
Merge pull request #14263 from mikaleppanen/5_15_wisun_mac_addr_get_corr
[mbed-os-5.15] Added missing const qualifier to mesh ethernet mac addr get
2 parents 1faaabb + 1270a59 commit 04b572e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

features/nanostack/mbed-mesh-api/mbed-mesh-api/NanostackEthernetInterface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Nanostack::EthernetInterface : public Nanostack::Interface {
2828
nsapi_ip_stack_t stack = DEFAULT_STACK,
2929
bool blocking = true);
3030
virtual nsapi_error_t bringdown();
31-
virtual void get_mac_address(uint8_t *buf);
31+
virtual void get_mac_address(uint8_t *buf) const;
3232
virtual char *get_mac_address(char *buf, nsapi_size_t buflen);
3333

3434
char *get_interface_name(char *buf);

features/nanostack/mbed-mesh-api/source/NanostackEthernetInterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ char *Nanostack::EthernetInterface::get_interface_name(char *buf)
130130
return buf;
131131
};
132132

133-
void Nanostack::EthernetInterface::get_mac_address(uint8_t *buf)
133+
void Nanostack::EthernetInterface::get_mac_address(uint8_t *buf) const
134134
{
135135
if (!buf) {
136136
return;

0 commit comments

Comments
 (0)