mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Proper fix of laptop mode conversion bug
This commit is contained in:
@@ -78,6 +78,7 @@ impl Config {
|
||||
let byte: u8 = (&mode).into();
|
||||
for (index, n) in self.builtin_modes.iter().enumerate() {
|
||||
if byte == u8::from(n) {
|
||||
// Consume it, OMNOMNOMNOM
|
||||
self.builtin_modes[index] = mode;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user