mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
cleanup details
This commit is contained in:
parent
da90d2777d
commit
906f8779a8
2 changed files with 2 additions and 3 deletions
|
|
@ -41,7 +41,6 @@ impl Into<[usize; 2]> for BattStats {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#[allow(dead_code)]
|
|
||||||
#[derive(Debug, num_derive::FromPrimitive, num_derive::ToPrimitive)]
|
#[derive(Debug, num_derive::FromPrimitive, num_derive::ToPrimitive)]
|
||||||
pub(crate) enum Opcode {
|
pub(crate) enum Opcode {
|
||||||
/// Battery stats
|
/// Battery stats
|
||||||
|
|
|
||||||
|
|
@ -241,7 +241,7 @@ fn xmain() -> ! {
|
||||||
|
|
||||||
let xns = xous_names::XousNames::new().unwrap();
|
let xns = xous_names::XousNames::new().unwrap();
|
||||||
let com_sid = xns.register_name(api::SERVER_NAME_COM).expect("can't register server");
|
let com_sid = xns.register_name(api::SERVER_NAME_COM).expect("can't register server");
|
||||||
info!("registered with NS -- {:?}", com_sid);
|
trace!("registered with NS -- {:?}", com_sid);
|
||||||
|
|
||||||
// Create a new com object
|
// Create a new com object
|
||||||
let mut com = XousCom::new();
|
let mut com = XousCom::new();
|
||||||
|
|
@ -250,7 +250,7 @@ fn xmain() -> ! {
|
||||||
let mut battstats_conns: [Option<xous::CID>; 32] = [None; 32];
|
let mut battstats_conns: [Option<xous::CID>; 32] = [None; 32];
|
||||||
// other future notification vectors shall go here
|
// other future notification vectors shall go here
|
||||||
|
|
||||||
info!("starting main loop");
|
trace!("starting main loop");
|
||||||
loop {
|
loop {
|
||||||
let msg = xous::receive_message(com_sid).unwrap();
|
let msg = xous::receive_message(com_sid).unwrap();
|
||||||
trace!("Message: {:?}", msg);
|
trace!("Message: {:?}", msg);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue