From efe88aa67518baa67970c1c1a6eb242cade1373f Mon Sep 17 00:00:00 2001 From: Luke Date: Wed, 1 Jul 2020 11:08:19 +1200 Subject: [PATCH] Prep new version --- CHANGELOG.md | 3 ++- Cargo.lock | 4 ++-- debian/changelog | 10 ++++++++++ rog-client/Cargo.toml | 2 +- rog-core/Cargo.toml | 2 +- rog-core/src/led_control.rs | 4 +--- rog-core/src/main.rs | 2 +- rog-core/src/rog_dbus.rs | 2 +- 8 files changed, 19 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 70cd3ca2..92fc86eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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` diff --git a/Cargo.lock b/Cargo.lock index 16e1c565..170ee8e4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", diff --git a/debian/changelog b/debian/changelog index 6d26d5f9..332059b8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Wed, 01 Jul 2020 11:04:34 +1200 + rog-core (0.13.1) focal; urgency=medium * Properly initialise the device diff --git a/rog-client/Cargo.toml b/rog-client/Cargo.toml index 3d3c5496..0bc9606a 100644 --- a/rog-client/Cargo.toml +++ b/rog-client/Cargo.toml @@ -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 "] diff --git a/rog-core/Cargo.toml b/rog-core/Cargo.toml index 342a2240..7d8b80f8 100644 --- a/rog-core/Cargo.toml +++ b/rog-core/Cargo.toml @@ -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 "] diff --git a/rog-core/src/led_control.rs b/rog-core/src/led_control.rs index 35c491e5..81477012 100644 --- a/rog-core/src/led_control.rs +++ b/rog-core/src/led_control.rs @@ -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] diff --git a/rog-core/src/main.rs b/rog-core/src/main.rs index 505c338f..b4d22951 100644 --- a/rog-core/src/main.rs +++ b/rog-core/src/main.rs @@ -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 { diff --git a/rog-core/src/rog_dbus.rs b/rog-core/src/rog_dbus.rs index b0c61442..8ed66188 100644 --- a/rog-core/src/rog_dbus.rs +++ b/rog-core/src/rog_dbus.rs @@ -66,7 +66,7 @@ fn get_keyboard_backlight_modes(config: Arc>) -> Method