mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
claim and release keyboard to read or Vol/Usb fails
This commit is contained in:
@@ -95,7 +95,7 @@ impl Daemon {
|
||||
});
|
||||
// READ KEYBOARD
|
||||
// TODO: this needs to move to a thread, but there is unsafety
|
||||
let borrowed_daemon = daemon.borrow();
|
||||
let mut borrowed_daemon = daemon.borrow_mut();
|
||||
match borrowed_daemon.rogcore.poll_keyboard(&mut key_buf) {
|
||||
Ok(read) => {
|
||||
// Doing this because the Laptop trait takes RogCore, but RogCore contains laptop
|
||||
|
||||
Reference in New Issue
Block a user