mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
fix issue #152
This commit is contained in:
parent
3b6bc6aeeb
commit
2f8c850cd6
1 changed files with 8 additions and 0 deletions
|
|
@ -968,6 +968,14 @@ fn xmain() -> ! {
|
|||
prealloc[i] = i as u16 - 1;
|
||||
}
|
||||
}
|
||||
/*
|
||||
ret[1] = self.mac[0] as u16 | (self.mac[1] as u16) << 8;
|
||||
ret[2] = self.mac[2] as u16 | (self.mac[3] as u16) << 8;
|
||||
ret[3] = self.mac[4] as u16 | (self.mac[5] as u16) << 8;
|
||||
multicast is self.mac[0] & 0x1 == 1 -> this gets set when 0xDDDD or 0xDEAD is transmitted as EC is in reset
|
||||
broadcast is 0xFF's -> this is unlikely to be sent, it only is sent if the EC won't configure at all
|
||||
*/
|
||||
prealloc[1] &= 0xFF_FE; // this ensures the "safety" of a reported MAC, even if the EC is broken and avoiding system panic (issue #152)
|
||||
buffer.replace(prealloc).expect("couldn't return result on FlashOp");
|
||||
}
|
||||
Some(Opcode::WlanFetchPacket) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue