Prep new version

This commit is contained in:
Luke
2020-07-01 11:08:19 +12:00
parent cff0af76c8
commit efe88aa675
8 changed files with 19 additions and 10 deletions

View File

@@ -128,7 +128,6 @@ where
} else {
self.write_effect(v).await?;
}
return Ok(());
}
AuraModes::LedBrightness(n) => {
let bytes: [u8; LED_MSG_LEN] = (&mode).into();
@@ -136,7 +135,6 @@ where
config.brightness = n;
config.write();
info!("LED brightness set to {:#?}", n);
return Ok(());
}
_ => {
let mode_num: u8 = u8::from(&mode);
@@ -163,9 +161,9 @@ where
config.set_mode_data(mode);
config.write();
info!("Switched LED mode to {:#?}", config.current_mode);
return Ok(());
}
}
Ok(())
}
#[inline]

View File

@@ -8,7 +8,7 @@ use rog_client::{
};
use std::io::Write;
static VERSION: &str = "0.13.1";
static VERSION: &str = "0.14.0";
#[derive(Options)]
struct CLIStart {

View File

@@ -66,7 +66,7 @@ fn get_keyboard_backlight_modes(config: Arc<Mutex<Config>>) -> Method<MTSync, ()
if let Ok(lock) = config.try_lock() {
let mode = serde_json::to_string(&lock.builtin_modes).unwrap();
let mret = m.msg.method_return().append1(mode);
return Ok(vec![mret]);
Ok(vec![mret])
} else {
Err(MethodErr::failed("Could not lock config for access"))
}