aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32-wpan
diff options
context:
space:
mode:
authorRuben De Smet <[email protected]>2023-07-28 16:19:24 +0200
committerRuben De Smet <[email protected]>2023-07-28 16:40:15 +0200
commit69c0a89aa5d52e048fdd8ddc5d47b767da07e88b (patch)
treee8eb364418ae00d46f2b4163b6c0bd8fff6306fc /embassy-stm32-wpan
parentc3ba08ffb6570589726db44d40ba5b724a8950d4 (diff)
Use HardwareAddress in Driver
Diffstat (limited to 'embassy-stm32-wpan')
-rw-r--r--embassy-stm32-wpan/src/mac/driver.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32-wpan/src/mac/driver.rs b/embassy-stm32-wpan/src/mac/driver.rs
index fffbb9edc..06ff0cf69 100644
--- a/embassy-stm32-wpan/src/mac/driver.rs
+++ b/embassy-stm32-wpan/src/mac/driver.rs
@@ -73,10 +73,10 @@ impl<'d> embassy_net_driver::Driver for Driver<'d> {
73 LinkState::Down 73 LinkState::Down
74 } 74 }
75 75
76 fn ethernet_address(&self) -> [u8; 6] { 76 fn hardware_address(&self) -> HardwareAddress {
77 // self.mac_addr 77 // self.mac_addr
78 78
79 [0; 6] 79 HardwareAddress::Ethernet(EthernetAddress([0; 6]))
80 } 80 }
81} 81}
82 82