mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Fix ally power config
This commit is contained in:
@@ -275,13 +275,11 @@ impl CtrlKbdLed {
|
||||
pub(super) fn fix_ally_power(&mut self) -> Result<(), RogError> {
|
||||
if self.led_type == AuraDeviceType::Ally {
|
||||
if let LEDNode::Rog(_, hid_raw) = &self.led_node {
|
||||
if let Some(fix) = self.config.ally_fix.as_mut() {
|
||||
if !*fix {
|
||||
let msg = [0x5d, 0xbd, 0x01, 0xff, 0xff, 0xff, 0xff];
|
||||
hid_raw.write_bytes(&msg)?;
|
||||
info!("Reset Ally power settings to base");
|
||||
}
|
||||
*fix = true;
|
||||
if self.config.ally_fix.is_none() {
|
||||
let msg = [0x5d, 0xbd, 0x01, 0xff, 0xff, 0xff, 0xff];
|
||||
hid_raw.write_bytes(&msg)?;
|
||||
info!("Reset Ally power settings to base");
|
||||
self.config.ally_fix = Some(true);
|
||||
}
|
||||
self.config.write();
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"POT-Creation-Date: 2024-08-30 09:32+0000\n"
|
||||
"POT-Creation-Date: 2024-08-30 23:16+0000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
||||
Reference in New Issue
Block a user