mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Fix: rever silly change in anime type detection
This commit is contained in:
@@ -245,13 +245,16 @@ pub fn get_anime_type() -> AnimeType {
|
|||||||
let dmi = DMIID::new().unwrap_or_default();
|
let dmi = DMIID::new().unwrap_or_default();
|
||||||
let board_name = dmi.board_name;
|
let board_name = dmi.board_name;
|
||||||
|
|
||||||
match board_name.to_uppercase().as_str() {
|
if board_name.contains("GA401I") || board_name.contains("GA401Q") {
|
||||||
"GA401I" | "GA401Q" => AnimeType::GA401,
|
AnimeType::GA401
|
||||||
"GA402R" | "GA402X" => AnimeType::GA402,
|
} else if board_name.contains("GA402R") || board_name.contains("GA402X") {
|
||||||
"GU604V" => AnimeType::GU604,
|
AnimeType::GA402
|
||||||
"G635L" => AnimeType::G635L,
|
} else if board_name.contains("GU604V") {
|
||||||
"G835LW" => AnimeType::G835LW,
|
AnimeType::GU604
|
||||||
_ => AnimeType::Unsupported,
|
} else if board_name.contains("G635L") {
|
||||||
|
AnimeType::G635L
|
||||||
|
} else {
|
||||||
|
AnimeType::Unsupported
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user