mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
fix up callbacks
This commit is contained in:
parent
84853c696a
commit
4957effe9c
1 changed files with 1 additions and 3 deletions
|
|
@ -5,10 +5,8 @@ pub fn dt_callback(dt: rtc::DateTime) {
|
|||
let xns = xous_names::XousNames::new().unwrap();
|
||||
let callback_conn = xns.request_connection_blocking(crate::SERVER_NAME_SHELLCHAT).unwrap();
|
||||
|
||||
// interesting: log calls in the callback cause the kernel to panic
|
||||
//log::info!("got datetime: {:?}", dt);
|
||||
let buf = xous_ipc::Buffer::into_buf(dt).or(Err(xous::Error::InternalError)).unwrap();
|
||||
buf.lend(callback_conn, 0xdeadbeef).unwrap();
|
||||
buf.lend(callback_conn, 0xdead_beef).unwrap(); // send an "unknown ID" so it's routed to the callback handler
|
||||
|
||||
unsafe{xous::disconnect(callback_conn).unwrap()};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue