Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions rog-slash/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pub enum SlashType {
GA403_2025,
GA605_2024,
GA605_2025,
GU405_2026,
GU605_2024,
GU605_2025,
GU606_2026,
Expand All @@ -31,6 +32,7 @@ impl SlashType {
SlashType::GA403_2024 => PROD_ID1,
SlashType::GA605_2025 => PROD_ID2,
SlashType::GA605_2024 => PROD_ID2,
SlashType::GU405_2026 => PROD_ID2,
SlashType::GU605_2025 => PROD_ID2,
SlashType::GU605_2024 => PROD_ID1,
SlashType::GU606_2026 => PROD_ID2,
Expand All @@ -45,6 +47,7 @@ impl SlashType {
SlashType::GA403_2024 => PROD_ID1_STR,
SlashType::GA605_2025 => PROD_ID2_STR,
SlashType::GA605_2024 => PROD_ID2_STR,
SlashType::GU405_2026 => PROD_ID2_STR,
SlashType::GU605_2025 => PROD_ID2_STR,
SlashType::GU605_2024 => PROD_ID1_STR,
SlashType::GU606_2026 => PROD_ID2_STR,
Expand All @@ -70,6 +73,8 @@ impl SlashType {
SlashType::GA605_2025
} else if board_name.contains("GA605") {
SlashType::GA605_2024
} else if board_name.contains("GU405") {
SlashType::GU405_2026
} else if board_name.contains("GU606") {
SlashType::GU606_2026
} else if board_name.contains("GU605C") {
Expand All @@ -91,6 +96,7 @@ impl FromStr for SlashType {
"GA403_2024" => Self::GA403_2024,
"GA605_2025" => Self::GA605_2025,
"GA605_2024" => Self::GA605_2024,
"GU405_2026" => Self::GU405_2026,
"GU605_2025" => Self::GU605_2025,
"GU605_2024" => Self::GU605_2024,
"GU606_2026" => Self::GU606_2026,
Expand Down
1 change: 1 addition & 0 deletions rog-slash/src/usb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pub const fn report_id(slash_type: SlashType) -> u8 {
SlashType::GA403_2024 => REPORT_ID_193B,
SlashType::GA605_2025 => REPORT_ID_19B6,
SlashType::GA605_2024 => REPORT_ID_19B6,
SlashType::GU405_2026 => REPORT_ID_19B6,
SlashType::GU605_2025 => REPORT_ID_19B6,
SlashType::GU605_2024 => REPORT_ID_193B,
SlashType::GU606_2026 => REPORT_ID_19B6,
Expand Down