initialize the keyboard interface with a clean report on boot

This commit is contained in:
bunnie 2022-05-30 17:39:09 +08:00 committed by nworbnhoj
parent 444f41266d
commit 7e0831c756

View file

@ -170,6 +170,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();