mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
fix polarity of preferences update
This commit is contained in:
parent
74ccdd5eae
commit
c5d6bd655c
1 changed files with 3 additions and 3 deletions
|
|
@ -250,14 +250,14 @@ impl DevicePrefs {
|
|||
.as_str(),
|
||||
);
|
||||
|
||||
if cv { // true means off
|
||||
if cv { // already inverted, so the meaning is true (true is on)
|
||||
xous::send_message(self.status_cid, xous::Message::new_scalar(
|
||||
crate::StatusOpcode::DisableAutomaticBacklight.to_usize().unwrap(),
|
||||
crate::StatusOpcode::EnableAutomaticBacklight.to_usize().unwrap(),
|
||||
0, 0, 0, 0)
|
||||
).ok();
|
||||
} else {
|
||||
xous::send_message(self.status_cid, xous::Message::new_scalar(
|
||||
crate::StatusOpcode::EnableAutomaticBacklight.to_usize().unwrap(),
|
||||
crate::StatusOpcode::DisableAutomaticBacklight.to_usize().unwrap(),
|
||||
0, 0, 0, 0)
|
||||
).ok();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue