mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Use enable/disable commands and cleanup build warnings
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
// - If udev sees device removed then remove the zbus path
|
||||
|
||||
use std::collections::HashSet;
|
||||
use std::time::Duration;
|
||||
|
||||
use log::{debug, error, info, warn};
|
||||
use mio::{Events, Interest, Poll, Token};
|
||||
|
||||
@@ -33,7 +33,7 @@ pub struct CtrlSlash {
|
||||
// node: HidRaw,
|
||||
node: Node,
|
||||
config: SlashConfig,
|
||||
slash_type: SlashType,
|
||||
// slash_type: SlashType,
|
||||
// // set to force thread to exit
|
||||
// thread_exit: Arc<AtomicBool>,
|
||||
// // Set to false when the thread exits
|
||||
@@ -53,7 +53,6 @@ impl CtrlSlash {
|
||||
return Err(RogError::NotSupported);
|
||||
};
|
||||
|
||||
// Maybe, detecting the slash-type may become necessary
|
||||
let slash_type = get_slash_type()?;
|
||||
if slash_type == SlashType::Unknown {
|
||||
return Err(RogError::Slash(SlashError::NoDevice));
|
||||
@@ -62,7 +61,7 @@ impl CtrlSlash {
|
||||
let ctrl = CtrlSlash {
|
||||
node,
|
||||
config,
|
||||
slash_type,
|
||||
// slash_type,
|
||||
// thread_exit: Arc::new(AtomicBool::new(false)),
|
||||
// thread_running: Arc::new(AtomicBool::new(false)),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user