From 0e6698de6429ce7f6cff99f958dbff38f7c35134 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Tue, 1 Mar 2022 21:46:15 -0700 Subject: [PATCH] ps2d: Wait for ps2 initialization before sending daemon ready --- ps2d/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ps2d/src/main.rs b/ps2d/src/main.rs index d72d9b0d4b..848e66fffe 100644 --- a/ps2d/src/main.rs +++ b/ps2d/src/main.rs @@ -82,10 +82,10 @@ fn daemon(daemon: syscall::Daemon) -> ! { syscall::setrens(0, 0).expect("ps2d: failed to enter null namespace"); - daemon.ready().expect("p2sd: failed to mark daemon as ready"); - let mut ps2d = Ps2d::new(input, keymap); + daemon.ready().expect("p2sd: failed to mark daemon as ready"); + let mut data = [0; 256]; loop { // There are some gotchas with ps/2 controllers that require this weird