mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Don't panic if -ENODEV on fan_curve enable
This commit is contained in:
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
- Aura support return a default aura definition instead of nothing
|
||||
- Minor updates in aura controller to ensure configs are updated if the support file changes
|
||||
- Don't panic if -ENODEV on fan_curve enable
|
||||
|
||||
## [v6.0.9]
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use log::trace;
|
||||
use log::{error, trace};
|
||||
use serde_derive::{Deserialize, Serialize};
|
||||
use typeshare::typeshare;
|
||||
use udev::Device;
|
||||
@@ -185,7 +185,8 @@ impl CurveData {
|
||||
// Enable must be done *after* all points are written pwm3_enable
|
||||
device
|
||||
.set_attribute_value(format!("pwm{pwm_num}_enable"), enable.to_string())
|
||||
.unwrap();
|
||||
.map_err(|e| error!("Failed to set pwm{pwm_num}_enable to {enable}: {e:?}"))
|
||||
.ok();
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user