mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-14 08:03:34 +00:00
add fix discovered during sim testing
This commit is contained in:
parent
6d3c50144e
commit
e66303e044
1 changed files with 3 additions and 0 deletions
|
|
@ -148,6 +148,9 @@ impl Mbox {
|
|||
}
|
||||
|
||||
pub fn try_send(&mut self, to_cm7: MboxToCm7Pkt) -> Result<(), MboxError> {
|
||||
// clear any pending bits from previous transactions
|
||||
self.csr.wo(mailbox::EV_PENDING, self.csr.r(mailbox::EV_PENDING));
|
||||
|
||||
if to_cm7.data.len() > MAX_PKT_LEN {
|
||||
Err(MboxError::TxOverflow)
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue