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

@@ -5,12 +5,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [0.14.0] - 2020-01-07
### Changed
- Further refine the way setting LED modes works so it is more universal, this
also allows for setting the brightness through `SetKeyBacklight`
### Added
- README_DBUS.md to document DBUS interface
- `README_DBUS.md` to document DBUS interface
- Dbus method `GetKeyBacklight`
- Dbus method `GetKeyBacklightModes`

4
Cargo.lock generated
View File

@@ -697,7 +697,7 @@ checksum = "cabe4fa914dec5870285fa7f71f602645da47c486e68486d2b4ceb4a343e90ac"
[[package]]
name = "rog-client"
version = "0.13.1"
version = "0.14.0"
dependencies = [
"dbus",
"gumdrop",
@@ -710,7 +710,7 @@ dependencies = [
[[package]]
name = "rog-daemon"
version = "0.13.1"
version = "0.14.0"
dependencies = [
"dbus",
"dbus-tokio",

10
debian/changelog vendored
View File

@@ -1,3 +1,13 @@
rog-core (0.14.0) focal; urgency=medium
- Further refine the way setting LED modes works so it is more universal, this
also allows for setting the brightness through `SetKeyBacklight`
- `README_DBUS.md` to document DBUS interface
- Dbus method `GetKeyBacklight`
- Dbus method `GetKeyBacklightModes`
-- Luke Jones <luke@ljones.dev> Wed, 01 Jul 2020 11:04:34 +1200
rog-core (0.13.1) focal; urgency=medium
* Properly initialise the device

View File

@@ -1,6 +1,6 @@
[package]
name = "rog-client"
version = "0.13.1"
version = "0.14.0"
license = "MPL-2.0"
readme = "README.md"
authors = ["Luke <luke@ljones.dev>"]

View File

@@ -1,6 +1,6 @@
[package]
name = "rog-daemon"
version = "0.13.1"
version = "0.14.0"
license = "MPL-2.0"
readme = "README.md"
authors = ["Luke <luke@ljones.dev>"]

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"))
}