net: add functions to get current Eth and IP config

This commit is contained in:
Dario Nieuwenhuis
2022-05-02 16:15:05 +02:00
parent e74af83681
commit a5f5c3a844
7 changed files with 30 additions and 12 deletions

View File

@ -334,7 +334,7 @@ impl<'d, T: Instance, P: PHY, const TX: usize, const RX: usize> Device
}
}
fn ethernet_address(&mut self) -> [u8; 6] {
fn ethernet_address(&self) -> [u8; 6] {
self.mac_addr
}
}

View File

@ -268,7 +268,7 @@ impl<'d, T: Instance, P: PHY, const TX: usize, const RX: usize> Device
}
}
fn ethernet_address(&mut self) -> [u8; 6] {
fn ethernet_address(&self) -> [u8; 6] {
self.mac_addr
}
}