From 3e065b6715ffc0afceba64a86357f3354ad9dcdb Mon Sep 17 00:00:00 2001 From: banditopazzo Date: Sun, 16 Jun 2024 17:37:41 +0200 Subject: [PATCH] Add slash detection for GU605 --- rog-slash/src/data.rs | 2 ++ rog-slash/src/usb.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/rog-slash/src/data.rs b/rog-slash/src/data.rs index 4c818836..029e2d57 100644 --- a/rog-slash/src/data.rs +++ b/rog-slash/src/data.rs @@ -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, }) } diff --git a/rog-slash/src/usb.rs b/rog-slash/src/usb.rs index ab73ed0e..1ec28aaa 100644 --- a/rog-slash/src/usb.rs +++ b/rog-slash/src/usb.rs @@ -36,6 +36,8 @@ pub fn get_maybe_slash_type() -> Result { 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) }