Add slash detection for GU605

This commit is contained in:
banditopazzo
2024-06-16 17:37:41 +02:00
parent f14d1ad61e
commit 3e065b6715
2 changed files with 4 additions and 0 deletions

View File

@@ -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,
}) })
} }

View File

@@ -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)
} }