mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-01-22 17:33:19 +01:00
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:
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user