From c541c1b0009db0a6ed5935e789098bd3cdbee44e Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Sun, 29 Jan 2023 18:00:19 +0800 Subject: [PATCH] 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 --- services/xous-ticktimer/src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/xous-ticktimer/src/main.rs b/services/xous-ticktimer/src/main.rs index 6a4ffdb5d..bf3631278 100644 --- a/services/xous-ticktimer/src/main.rs +++ b/services/xous-ticktimer/src/main.rs @@ -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);