mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
initialize the keyboard interface with a clean report on boot
This commit is contained in:
parent
444f41266d
commit
7e0831c756
1 changed files with 5 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue