Rename RGB to Per_KEY

This commit is contained in:
Luke D Jones
2020-08-11 12:37:01 +12:00
parent c0f258f09f
commit 869d9a5b32
5 changed files with 32 additions and 12 deletions

View File

@@ -44,7 +44,7 @@ impl AuraDbusClient {
/// the keyboard LED EC in the correct mode
#[inline]
pub fn init_effect(&self) -> Result<(), Box<dyn std::error::Error>> {
let mode = AuraModes::RGB(vec![vec![]]);
let mode = AuraModes::PerKey(vec![vec![]]);
let mut msg =
Message::new_method_call(DBUS_NAME, DBUS_PATH, DBUS_IFACE, "SetKeyBacklight")?
.append1(serde_json::to_string(&mode)?);
@@ -67,7 +67,7 @@ impl AuraDbusClient {
for v in group {
vecs.push(v.to_vec());
}
let mode = AuraModes::RGB(vecs);
let mode = AuraModes::PerKey(vecs);
let mut msg =
Message::new_method_call(DBUS_NAME, DBUS_PATH, DBUS_IFACE, "SetKeyBacklight")?
.append1(serde_json::to_string(&mode)?);