mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-01-22 17:33:19 +01:00
Add slash detection for GU605
This commit is contained in:
@@ -13,6 +13,7 @@ use crate::error::SlashError;
|
|||||||
pub enum SlashType {
|
pub enum SlashType {
|
||||||
GA403,
|
GA403,
|
||||||
GA605,
|
GA605,
|
||||||
|
GU605,
|
||||||
Unsupported,
|
Unsupported,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -23,6 +24,7 @@ impl FromStr for SlashType {
|
|||||||
Ok(match s {
|
Ok(match s {
|
||||||
"ga403" | "GA403" => Self::GA403,
|
"ga403" | "GA403" => Self::GA403,
|
||||||
"ga605" | "GA605" => Self::GA605,
|
"ga605" | "GA605" => Self::GA605,
|
||||||
|
"gu605" | "GU605" => Self::GU605,
|
||||||
_ => Self::Unsupported,
|
_ => Self::Unsupported,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,8 @@ pub fn get_maybe_slash_type() -> Result<SlashType, SlashError> {
|
|||||||
return Ok(SlashType::GA403);
|
return Ok(SlashType::GA403);
|
||||||
} else if board_name.contains("GA605") {
|
} else if board_name.contains("GA605") {
|
||||||
return Ok(SlashType::GA605);
|
return Ok(SlashType::GA605);
|
||||||
|
} else if board_name.contains("GU605") {
|
||||||
|
return Ok(SlashType::GU605);
|
||||||
}
|
}
|
||||||
Ok(SlashType::Unsupported)
|
Ok(SlashType::Unsupported)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user