xous-ticktimer: don't panic in an interrupt

If we are unable to send a message in an interrupt, simply ignore it.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2023-01-29 18:00:19 +08:00
parent a455f0ae1d
commit c541c1b000

View file

@ -85,8 +85,7 @@ mod implementation {
// Safe because we're in an interrupt, and this interrupt is only
// enabled when this value is not None.
let response = xtt.current_response.take().unwrap();
xous::return_scalar(response.sender, response.kind as usize)
.expect("couldn't send response");
xous::return_scalar(response.sender, response.kind as usize).ok();
// Disable the timer
xtt.csr.wfo(utra::ticktimer::EV_ENABLE_ALARM, 0);