mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-10-02 14:44:42 +00:00
Fix indexing (#3896)
This commit is contained in:
parent
3ec26ead9d
commit
351dcfd367
@ -297,8 +297,8 @@ pub(crate) fn set_multipan_ext_addr(
|
||||
) {
|
||||
let inf = IEEE802154::regs().inf(index as usize);
|
||||
|
||||
let ext_addr0 = u32::from_le_bytes(unwrap!(ext_addr[0..3].try_into()));
|
||||
let ext_addr1 = u32::from_le_bytes(unwrap!(ext_addr[4..7].try_into()));
|
||||
let ext_addr0 = u32::from_le_bytes(unwrap!(ext_addr[0..4].try_into()));
|
||||
let ext_addr1 = u32::from_le_bytes(unwrap!(ext_addr[4..8].try_into()));
|
||||
|
||||
inf.extend_addr0()
|
||||
.write(|w| unsafe { w.extend_addr0().bits(ext_addr0) });
|
||||
|
Loading…
x
Reference in New Issue
Block a user