From e66303e044060f69fcf66476b2e893a92f4ff13d Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 2 Jan 2025 01:02:08 +0800 Subject: [PATCH] add fix discovered during sim testing --- services/cram-console/src/cmds/mbox.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/cram-console/src/cmds/mbox.rs b/services/cram-console/src/cmds/mbox.rs index 9d59319ed..98cbc4878 100644 --- a/services/cram-console/src/cmds/mbox.rs +++ b/services/cram-console/src/cmds/mbox.rs @@ -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 {