summaryrefslogtreecommitdiff
path: root/examples/nrf
diff options
context:
space:
mode:
authorDario Nieuwenhuis <dirbaio@dirbaio.net>2022-05-02 16:15:05 +0200
committerDario Nieuwenhuis <dirbaio@dirbaio.net>2022-05-02 16:19:34 +0200
commita5f5c3a844561d56c91513f36a1077038d8a0336 (patch)
tree017ea0d73195fb0665a27ff97e6da5902e44c25b /examples/nrf
parente74af83681bc65524acda4ec0a2b52e447c62daf (diff)
downloadembassy-a5f5c3a844561d56c91513f36a1077038d8a0336.zip
net: add functions to get current Eth and IP config
Diffstat (limited to 'examples/nrf')
-rw-r--r--examples/nrf/src/bin/usb_ethernet.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/nrf/src/bin/usb_ethernet.rs b/examples/nrf/src/bin/usb_ethernet.rs
index 70460d23..f14a29c4 100644
--- a/examples/nrf/src/bin/usb_ethernet.rs
+++ b/examples/nrf/src/bin/usb_ethernet.rs
@@ -265,7 +265,7 @@ impl embassy_net::Device for Device {
RX_CHANNEL.try_recv().ok()
}
- fn ethernet_address(&mut self) -> [u8; 6] {
+ fn ethernet_address(&self) -> [u8; 6] {
self.mac_addr
}
}