We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5271f69 commit 35e788fCopy full SHA for 35e788f
src/brightness/controller.rs
@@ -113,7 +113,12 @@ impl Controller {
113
} else {
114
let new_value = current.saturating_add_signed(target.step);
115
match self.brightness.set(new_value).await {
116
- Ok(new_value) => self.current = Some(new_value),
+ Ok(set_value) => {
117
+ if set_value == current {
118
+ log::warn!("Unable to change brightness from {current} to {new_value}, please report if you know how to reproduce this");
119
+ }
120
+ self.current = Some(set_value);
121
122
Err(err) => log::error!(
123
"Unable to set brightness to value '{}': {:?}",
124
new_value,
0 commit comments