mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +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
|
// Safe because we're in an interrupt, and this interrupt is only
|
||||||
// enabled when this value is not None.
|
// enabled when this value is not None.
|
||||||
let response = xtt.current_response.take().unwrap();
|
let response = xtt.current_response.take().unwrap();
|
||||||
xous::return_scalar(response.sender, response.kind as usize)
|
xous::return_scalar(response.sender, response.kind as usize).ok();
|
||||||
.expect("couldn't send response");
|
|
||||||
|
|
||||||
// Disable the timer
|
// Disable the timer
|
||||||
xtt.csr.wfo(utra::ticktimer::EV_ENABLE_ALARM, 0);
|
xtt.csr.wfo(utra::ticktimer::EV_ENABLE_ALARM, 0);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue