Skip to content

[feature-wisun] Added missing const qualifier to mesh ethernet mac addr get #14262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Nanostack::EthernetInterface : public Nanostack::Interface {
nsapi_ip_stack_t stack = DEFAULT_STACK,
bool blocking = true);
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);

char *get_interface_name(char *buf);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,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;
Expand Down