Fix asusd-ledmodes.toml

This commit is contained in:
Luke D. Jones
2021-09-11 17:03:32 +12:00
parent 99dd052d54
commit 7041d77256
6 changed files with 18 additions and 9 deletions

View File

@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
# [4.0.1] - 2021-09-11
### Changed
- Fix asusd-ledmodes.toml
# [4.0.0] - 2021-09-10
### Added
- AniMe:

4
Cargo.lock generated
View File

@@ -209,7 +209,7 @@ dependencies = [
[[package]]
name = "daemon"
version = "4.0.0"
version = "4.0.1"
dependencies = [
"env_logger",
"log",
@@ -934,7 +934,7 @@ dependencies = [
[[package]]
name = "rog_profiles"
version = "1.0.0"
version = "1.0.1"
dependencies = [
"serde",
"serde_derive",

View File

@@ -1,6 +1,6 @@
[package]
name = "daemon"
version = "4.0.0"
version = "4.0.1"
license = "MPL-2.0"
readme = "README.md"
authors = ["Luke <luke@ljones.dev>"]

View File

@@ -96,6 +96,14 @@ standard = ["Static", "Breathe", "Pulse"]
multizone = false
per_key = false
# GA503QE at higher priority (first match) than GA503Q
[[led_data]]
prod_family = "ROG Zephyrus G15"
board_names = ["GA503QE"]
standard = ["Static", "Breathe", "Pulse"]
multizone = false
per_key = false
[[led_data]]
prod_family = "ROG Zephyrus G15"
board_names = ["GA503Q"]
@@ -112,7 +120,7 @@ per_key = true
[[led_data]]
prod_family = "ROG Zephyrus Duo 15 SE"
board_name = ["GX551Q"]
standard ["Static", "Breathe", "Pulse", "Rainbow", "Strobe"]
board_names = ["GX551Q"]
standard = ["Static", "Breathe", "Strobe", "Rainbow", "Pulse"]
multizone = false
per_key = true

View File

@@ -1,6 +1,6 @@
[package]
name = "rog_profiles"
version = "1.0.0"
version = "1.0.1"
authors = ["Luke D. Jones <luke@ljones.dev>"]
edition = "2018"

View File

@@ -243,7 +243,6 @@ impl FanCurveProfiles {
pub fn write_to_fan(curve: &CurveData, pwm_num: char, device: &mut Device) {
let mut pwm = "pwmN_auto_pointN_pwm".to_string();
dbg!(&device);
for (index, out) in curve.pwm.iter().enumerate() {
unsafe {
let buf = pwm.as_bytes_mut();
@@ -252,8 +251,6 @@ pub fn write_to_fan(curve: &CurveData, pwm_num: char, device: &mut Device) {
buf[15] = char::from_digit(index as u32 + 1, 10).unwrap() as u8;
}
let out = out.to_string();
dbg!(&pwm);
dbg!(&out);
device.set_attribute_value(&pwm, &out).unwrap();
}