mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
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:
parent
a455f0ae1d
commit
c541c1b000
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue