the system as writ does not actually allocate an extra connection

Adjust the connection number back to 4. There isn't a connection
made for a keyboard backlight server anymore. This is necessary
for root key initialization to proceed.
This commit is contained in:
bunnie 2022-06-14 01:25:41 +08:00
parent 9760910991
commit 6a583a5f0c

View file

@ -739,10 +739,9 @@ fn main() -> ! {
// - graphics (if building for hosted mode)
// - oqc (for factory test)
// - status sub system (for setting the layout)
// - keyboard-backlight (to start backlight when a key is pressed)
// - USB (for getting layout)
#[cfg(any(target_os = "none", target_os = "xous"))]
let kbd_sid = xns.register_name(api::SERVER_NAME_KBD, Some(6)).expect("can't register server");
let kbd_sid = xns.register_name(api::SERVER_NAME_KBD, Some(4)).expect("can't register server");
#[cfg(not(any(target_os = "none", target_os = "xous")))]
let kbd_sid = xns.register_name(api::SERVER_NAME_KBD, Some(5)).expect("can't register server");
log::trace!("registered with NS -- {:?}", kbd_sid);