We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2a725f commit d3334c8Copy full SHA for d3334c8
rog_fan_curve/src/lib.rs
@@ -305,7 +305,18 @@ impl Board {
305
Self::from_name(name.trim())
306
}
307
308
+ /// Identifies the board using prefixes that have been reported as working
309
pub fn from_name(name: &str) -> Option<Self> {
310
+ for prefix in &["GA401I", "GA401Q"] {
311
+ if name.starts_with(prefix) {
312
+ return Some(Board::Ga401)
313
+ }
314
315
+ None
316
317
+
318
+ /// Identifies the board using exact names that have been reported as working
319
+ pub fn from_name_strict(name: &str) -> Option<Self> {
320
match name {
321
"GA401IV" => Some(Board::Ga401),
322
"GA401IU" => Some(Board::Ga401),
0 commit comments