From 3f172b82a4a0cf914020d32d0fa91450fb6fb63d Mon Sep 17 00:00:00 2001 From: Yarn Date: Sat, 21 Aug 2021 23:37:49 -0700 Subject: [PATCH] add boards --- rog_fan_curve/Cargo.toml | 2 +- rog_fan_curve/src/lib.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/rog_fan_curve/Cargo.toml b/rog_fan_curve/Cargo.toml index c795ee4..580f6d4 100644 --- a/rog_fan_curve/Cargo.toml +++ b/rog_fan_curve/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rog_fan_curve" -version = "0.1.10" +version = "0.1.11" authors = ["ryan "] license = "MIT OR Apache-2.0" repository = "https://github.com/Yarn/rog_fan_curve" diff --git a/rog_fan_curve/src/lib.rs b/rog_fan_curve/src/lib.rs index 8798d19..07e8305 100644 --- a/rog_fan_curve/src/lib.rs +++ b/rog_fan_curve/src/lib.rs @@ -307,7 +307,7 @@ impl Board { /// Identifies the board using prefixes that have been reported as working pub fn from_name(name: &str) -> Option { - for prefix in &["GA401I", "GA401Q"] { + for prefix in &["GA401", "GA502", "GA503"] { if name.starts_with(prefix) { return Some(Board::Ga401) } @@ -324,6 +324,7 @@ impl Board { "GA401IVC" => Some(Board::Ga401), "GA401IH" => Some(Board::Ga401), "GA401QM" => Some(Board::Ga401), + "GA502IU" => Some(Board::Ga401), _ => None, } }