cleanup details

This commit is contained in:
bunnie 2021-04-02 17:57:33 +08:00
parent da90d2777d
commit 906f8779a8
2 changed files with 2 additions and 3 deletions

View file

@ -41,7 +41,6 @@ impl Into<[usize; 2]> for BattStats {
]
}
}
#[allow(dead_code)]
#[derive(Debug, num_derive::FromPrimitive, num_derive::ToPrimitive)]
pub(crate) enum Opcode {
/// Battery stats

View file

@ -241,7 +241,7 @@ fn xmain() -> ! {
let xns = xous_names::XousNames::new().unwrap();
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
let mut com = XousCom::new();
@ -250,7 +250,7 @@ fn xmain() -> ! {
let mut battstats_conns: [Option<xous::CID>; 32] = [None; 32];
// other future notification vectors shall go here
info!("starting main loop");
trace!("starting main loop");
loop {
let msg = xous::receive_message(com_sid).unwrap();
trace!("Message: {:?}", msg);