mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Document dbus a bit better
This commit is contained in:
@@ -125,7 +125,7 @@ pub async fn start_daemon() -> Result<(), Box<dyn Error>> {
|
||||
if let Some(n) = lock.take() {
|
||||
let mut config = config1.lock().await;
|
||||
rogcore
|
||||
.fan_mode_set(n, &mut config)
|
||||
.set_fan_mode(n, &mut config)
|
||||
.unwrap_or_else(|err| warn!("{:?}", err));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,7 +139,7 @@ impl RogCore {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn fan_mode_set(&mut self, n: u8, config: &mut Config) -> Result<(), Box<dyn Error>> {
|
||||
pub fn set_fan_mode(&mut self, n: u8, config: &mut Config) -> Result<(), Box<dyn Error>> {
|
||||
let path = RogCore::get_fan_path()?;
|
||||
let mut fan_ctrl = OpenOptions::new().read(true).write(true).open(path)?;
|
||||
|
||||
@@ -164,7 +164,7 @@ impl RogCore {
|
||||
} else {
|
||||
n = 0;
|
||||
}
|
||||
self.fan_mode_set(n, config)
|
||||
self.set_fan_mode(n, config)
|
||||
}
|
||||
|
||||
fn set_pstate_for_fan_mode(
|
||||
|
||||
Reference in New Issue
Block a user