fix hosted mode

This commit is contained in:
bunnie 2021-08-24 23:34:33 +08:00
parent 69d9e38c8b
commit f5b69a8cef
2 changed files with 10 additions and 2 deletions

View file

@ -814,6 +814,14 @@ mod implementation {
pub fn set_chord_interval(&mut self, delay: u32) {
self.chord_interval = delay;
}
pub fn is_repeating_key(&self) -> bool {
false
}
pub(crate) fn get_repeat_check_interval(&self) -> u32 {
self.rate
}
pub(crate) fn poll(&mut self) {}
}
}

View file

@ -493,8 +493,8 @@ fn xmain() -> ! {
loop {
#[cfg(feature = "watchdog")]
ticktimer.reset_wdt();
#[cfg(feature = "watchdog")] // for debugging the watchdog
ticktimer.check_wdt();
//#[cfg(feature = "watchdog")] // for debugging the watchdog
//ticktimer.check_wdt();
let msg = xous::receive_message(ticktimer_server).unwrap();
log::trace!("msg: {:?}", msg);