Merge pull request #14262 from mikaleppanen/feat_wisun_mac_addr_get_corr

[feature-wisun] Added missing const qualifier to mesh ethernet mac addr get
pull/14431/head
Martin Kojtal 2021-03-16 16:49:10 +01:00 committed by GitHub
commit 72de76596e
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, nsapi_ip_stack_t stack = DEFAULT_STACK,
bool blocking = true); bool blocking = true);
virtual nsapi_error_t bringdown(); virtual nsapi_error_t bringdown();
virtual void get_mac_address(uint8_t *buf); virtual void get_mac_address(uint8_t *buf) const;
virtual char *get_mac_address(char *buf, nsapi_size_t buflen); virtual char *get_mac_address(char *buf, nsapi_size_t buflen);
char *get_interface_name(char *buf); char *get_interface_name(char *buf);

View File

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