Merge branch 'gu605-slash-support' into 'main'

Add slash detection for GU605

Closes #523

See merge request asus-linux/asusctl!193
This commit is contained in:
Luke Jones
2024-06-17 00:35:24 +00:00
2 changed files with 4 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ use crate::error::SlashError;
pub enum SlashType {
GA403,
GA605,
GU605,
Unsupported,
}
@@ -23,6 +24,7 @@ impl FromStr for SlashType {
Ok(match s {
"ga403" | "GA403" => Self::GA403,
"ga605" | "GA605" => Self::GA605,
"gu605" | "GU605" => Self::GU605,
_ => Self::Unsupported,
})
}

View File

@@ -36,6 +36,8 @@ pub fn get_maybe_slash_type() -> Result<SlashType, SlashError> {
return Ok(SlashType::GA403);
} else if board_name.contains("GA605") {
return Ok(SlashType::GA605);
} else if board_name.contains("GU605") {
return Ok(SlashType::GU605);
}
Ok(SlashType::Unsupported)
}