More logigng. Adjust the aura init process. Fix TUF led power

This commit is contained in:
Luke D. Jones
2024-05-10 18:57:41 +12:00
parent ccf8d8df91
commit f131a3fa70
7 changed files with 151 additions and 137 deletions

View File

@@ -746,6 +746,15 @@
advanced_type: PerKey,
power_zones: [Keyboard],
),
(
device_name: "GX650R",
product_id: "",
layout_name: "gx531-per-key",
basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash],
basic_zones: [],
advanced_type: PerKey,
power_zones: [Keyboard],
),
(
device_name: "GX701",
product_id: "",

View File

@@ -70,7 +70,9 @@ impl LedSupportData {
}
}
info!("Using generic LED control for keyboard brightness only");
LedSupportData::default()
let mut data = LedSupportData::default();
data.power_zones.push(PowerZones::Keyboard);
data
}
}

View File

@@ -53,7 +53,8 @@ impl AuraPowerState {
}
fn tuf_to_bytes(&self) -> Vec<u8> {
todo!("0s and 1s for bool array")
// &cmd, &boot, &awake, &sleep, &keyboard
vec![1, self.boot as u8, self.awake as u8, self.sleep as u8, 1]
}
/// # Bits for older 0x1866 keyboard model