mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Fix formatting
This commit is contained in:
@@ -27,9 +27,13 @@ impl Aura {
|
||||
pub async fn do_initialization(&self) -> Result<(), RogError> {
|
||||
if let Some(hid) = &self.hid {
|
||||
let hid = hid.lock().await;
|
||||
let init_1: [u8; 2] = [0x5d, 0xb9];
|
||||
let init_1: [u8; 2] = [
|
||||
0x5d, 0xb9,
|
||||
];
|
||||
let init_2 = b"]ASUS Tech.Inc.";
|
||||
let init_3: [u8; 6] = [0x5d, 0x05, 0x20, 0x31, 0, 0x1a];
|
||||
let init_3: [u8; 6] = [
|
||||
0x5d, 0x05, 0x20, 0x31, 0, 0x1a,
|
||||
];
|
||||
|
||||
hid.write_bytes(&init_1)?;
|
||||
hid.write_bytes(init_2)?;
|
||||
@@ -39,7 +43,9 @@ impl Aura {
|
||||
if config.support_data.device_name.contains("GZ30")
|
||||
|| config.support_data.device_name.contains("Z13")
|
||||
{
|
||||
let z13_init: [u8; 4] = [0x5d, 0xc0, 0x03, 0x01];
|
||||
let z13_init: [u8; 4] = [
|
||||
0x5d, 0xc0, 0x03, 0x01,
|
||||
];
|
||||
hid.write_bytes(&z13_init)?;
|
||||
}
|
||||
}
|
||||
@@ -207,7 +213,7 @@ impl Aura {
|
||||
new_state.zone = PowerZones::Lightbar;
|
||||
enabled.states.push(new_state);
|
||||
} else if !bar_found {
|
||||
// Lid found but not bar?
|
||||
// Lid found but not bar?
|
||||
let mut new_state = logo;
|
||||
new_state.zone = PowerZones::Lightbar;
|
||||
enabled.states.push(new_state);
|
||||
|
||||
Reference in New Issue
Block a user