mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
clean out debug messages and scaffolding
This commit is contained in:
parent
387b5d22e5
commit
47fef3c2d0
2 changed files with 8 additions and 8 deletions
|
|
@ -406,8 +406,8 @@ mod implementation {
|
||||||
// EV_PENDING_KEYPRESSED effectively does an XOR of the previous keyboard state
|
// 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
|
// to the current state, which is why update() does not repeatedly issue results
|
||||||
// for keys that are pressed & held.
|
// for keys that are pressed & held.
|
||||||
log::info!("update new_state: {:?}", self.new_state);
|
log::trace!("update new_state: {:?}", self.new_state);
|
||||||
log::info!("update last_state: {:?}", self.last_state);
|
log::trace!("update last_state: {:?}", self.last_state);
|
||||||
|
|
||||||
let mut krs = KeyRawStates::new();
|
let mut krs = KeyRawStates::new();
|
||||||
|
|
||||||
|
|
@ -427,7 +427,7 @@ mod implementation {
|
||||||
self.last_state.insert(rc);
|
self.last_state.insert(rc);
|
||||||
}
|
}
|
||||||
|
|
||||||
log::info!("krs: {:?}", krs);
|
log::trace!("krs: {:?}", krs);
|
||||||
krs
|
krs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -849,10 +849,10 @@ fn xmain() -> ! {
|
||||||
|
|
||||||
let mut vibe = false;
|
let mut vibe = false;
|
||||||
let llio = llio::Llio::new(&xns).unwrap();
|
let llio = llio::Llio::new(&xns).unwrap();
|
||||||
{
|
/*{
|
||||||
log::warn!("kbd server is overriding WFI for debugging, remember to disable for production");
|
log::warn!("kbd server is overriding WFI for debugging, remember to disable for production");
|
||||||
llio.wfi_override(true).unwrap();
|
llio.wfi_override(true).unwrap();
|
||||||
}
|
}*/
|
||||||
|
|
||||||
log::trace!("starting main loop");
|
log::trace!("starting main loop");
|
||||||
loop {
|
loop {
|
||||||
|
|
@ -898,7 +898,7 @@ fn xmain() -> ! {
|
||||||
} else {
|
} else {
|
||||||
'\u{0000}'
|
'\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 {
|
if let Some(conn) = listener_conn {
|
||||||
info!("injecting key '{}'", key); // always be noisy about this, it's an exploit path
|
info!("injecting key '{}'", key); // always be noisy about this, it's an exploit path
|
||||||
xous::send_message(conn,
|
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.
|
// 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() {
|
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
|
// fire a second call to check if we should transition to a repeating state
|
||||||
ticktimer.sleep_ms(kbd.get_repeat_check_interval() as _).unwrap();
|
ticktimer.sleep_ms(kbd.get_repeat_check_interval() as _).unwrap();
|
||||||
kbd.poll();
|
kbd.poll();
|
||||||
|
|
|
||||||
|
|
@ -289,7 +289,7 @@ mod implementation {
|
||||||
// during a critical operation like SPINOR flashing because we swapped consoles at a bad time. Should be
|
// during a critical operation like SPINOR flashing because we swapped consoles at a bad time. Should be
|
||||||
// very rare and only affect devs...
|
// 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");
|
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);
|
self.power_csr.rmwf(utra::power::POWER_DISABLE_WFI, 0);
|
||||||
} else {
|
} else {
|
||||||
log::warn!("sticking WFI override to 1 for keyboard debug, remove this path when done!");
|
log::warn!("sticking WFI override to 1 for keyboard debug, remove this path when done!");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue