mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-01-22 09:23:19 +01:00
Modify changelog and cargo fmt
This commit is contained in:
@@ -4,6 +4,9 @@
|
|||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Added support for TUF keyboard powerstate control
|
- Added support for TUF keyboard powerstate control
|
||||||
|
- Improved AniMe Matrix support thanks to @Seom1177 !
|
||||||
|
- Fixed a bug with one-shot battery change, thanks @bitr8 !
|
||||||
|
|
||||||
|
|
||||||
## [6.2.0]
|
## [6.2.0]
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,12 @@ impl SlashType {
|
|||||||
let board_name = DMIID::new().unwrap_or_default().board_name.to_uppercase();
|
let board_name = DMIID::new().unwrap_or_default().board_name.to_uppercase();
|
||||||
if board_name.contains("G614F") {
|
if board_name.contains("G614F") {
|
||||||
SlashType::G614_2025
|
SlashType::G614_2025
|
||||||
} else if ["GA403W", "GA403UH", "GA403UM", "GA403UP"].iter().any(|s| board_name.contains(s)) {
|
} else if [
|
||||||
|
"GA403W", "GA403UH", "GA403UM", "GA403UP",
|
||||||
|
]
|
||||||
|
.iter()
|
||||||
|
.any(|s| board_name.contains(s))
|
||||||
|
{
|
||||||
SlashType::GA403_2025
|
SlashType::GA403_2025
|
||||||
} else if board_name.contains("GA403") {
|
} else if board_name.contains("GA403") {
|
||||||
SlashType::GA403_2024
|
SlashType::GA403_2024
|
||||||
|
|||||||
@@ -40,7 +40,12 @@ pub fn get_slash_type() -> SlashType {
|
|||||||
let board_name = dmi.board_name.to_uppercase();
|
let board_name = dmi.board_name.to_uppercase();
|
||||||
if board_name.contains("G614F") {
|
if board_name.contains("G614F") {
|
||||||
SlashType::G614_2025
|
SlashType::G614_2025
|
||||||
} else if ["GA403W", "GA403UH", "GA403UM", "GA403UP"].iter().any(|s| board_name.contains(s)) {
|
} else if [
|
||||||
|
"GA403W", "GA403UH", "GA403UM", "GA403UP",
|
||||||
|
]
|
||||||
|
.iter()
|
||||||
|
.any(|s| board_name.contains(s))
|
||||||
|
{
|
||||||
SlashType::GA403_2025
|
SlashType::GA403_2025
|
||||||
} else if board_name.contains("GA403") {
|
} else if board_name.contains("GA403") {
|
||||||
SlashType::GA403_2024
|
SlashType::GA403_2024
|
||||||
|
|||||||
Reference in New Issue
Block a user