initialize the keyboard interface with a clean report on boot

This commit is contained in:
bunnie 2022-05-30 17:39:09 +08:00
parent 57e58ff499
commit c046e0bb16

View file

@ -152,6 +152,11 @@ fn xmain() -> ! {
.product("Precursor")
.serial_number(&serial_number)
.build();
#[cfg(any(target_os = "none", target_os = "xous"))]
{
keyboard.interface().write_report(&Vec::<Keyboard>::new()).ok();
keyboard.interface().tick().unwrap();
}
#[cfg(any(target_os = "none", target_os = "xous"))]
let mut led_state: KeyboardLedsReport = KeyboardLedsReport::default();