Merge pull request #14261 from mikaleppanen/mac_addr_get_corr

Add missing const qualifier to mesh ethernet mac addr get
pull/14269/head
Martin Kojtal 2021-02-11 08:04:18 +00:00 committed by GitHub
commit ee14e30310
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ public:
nsapi_ip_stack_t stack = DEFAULT_STACK,
bool blocking = true) override;
nsapi_error_t bringdown() override;
void get_mac_address(uint8_t *buf);
void get_mac_address(uint8_t *buf) const override;
char *get_mac_address(char *buf, nsapi_size_t buflen) override;
char *get_interface_name(char *buf) override;

View File

@ -133,7 +133,7 @@ char *Nanostack::EthernetInterface::get_interface_name(char *buf)
return buf;
};
void Nanostack::EthernetInterface::get_mac_address(uint8_t *buf)
void Nanostack::EthernetInterface::get_mac_address(uint8_t *buf) const
{
if (!buf) {
return;