clean out debug messages and scaffolding

This commit is contained in:
bunnie 2021-08-24 01:48:30 +08:00
parent 387b5d22e5
commit 47fef3c2d0
2 changed files with 8 additions and 8 deletions

View file

@ -406,8 +406,8 @@ mod implementation {
// EV_PENDING_KEYPRESSED effectively does an XOR of the previous keyboard state
// to the current state, which is why update() does not repeatedly issue results
// for keys that are pressed & held.
log::info!("update new_state: {:?}", self.new_state);
log::info!("update last_state: {:?}", self.last_state);
log::trace!("update new_state: {:?}", self.new_state);
log::trace!("update last_state: {:?}", self.last_state);
let mut krs = KeyRawStates::new();
@ -427,7 +427,7 @@ mod implementation {
self.last_state.insert(rc);
}
log::info!("krs: {:?}", krs);
log::trace!("krs: {:?}", krs);
krs
}
@ -849,10 +849,10 @@ fn xmain() -> ! {
let mut vibe = false;
let llio = llio::Llio::new(&xns).unwrap();
{
/*{
log::warn!("kbd server is overriding WFI for debugging, remember to disable for production");
llio.wfi_override(true).unwrap();
}
}*/
log::trace!("starting main loop");
loop {
@ -898,7 +898,7 @@ fn xmain() -> ! {
} else {
'\u{0000}'
};
log::info!("got inject key, listener_conn: {:?}", listener_conn);
log::trace!("got inject key, listener_conn: {:?}", listener_conn);
if let Some(conn) = listener_conn {
info!("injecting key '{}'", key); // always be noisy about this, it's an exploit path
xous::send_message(conn,
@ -947,7 +947,7 @@ fn xmain() -> ! {
}
// as long as we have a keydown, keep pinging the loop at a high rate. this consumes more power, but keydowns are relatively rare.
if kbd.is_repeating_key() {
log::info!("keydowns hold");
log::trace!("keydowns hold");
// fire a second call to check if we should transition to a repeating state
ticktimer.sleep_ms(kbd.get_repeat_check_interval() as _).unwrap();
kbd.poll();

View file

@ -289,7 +289,7 @@ mod implementation {
// during a critical operation like SPINOR flashing because we swapped consoles at a bad time. Should be
// very rare and only affect devs...
log::warn!("unsafe re-enabling WFI -- if you issued this command at a bad time, could have side effects");
if false {
if true {
self.power_csr.rmwf(utra::power::POWER_DISABLE_WFI, 0);
} else {
log::warn!("sticking WFI override to 1 for keyboard debug, remove this path when done!");