summaryrefslogtreecommitdiff
path: root/firmware/src
diff options
context:
space:
mode:
authorMarc Poulhiès <dkm@kataplop.net>2021-01-16 15:07:55 +0100
committerMarc Poulhiès <dkm@kataplop.net>2021-01-16 15:07:55 +0100
commit2153a0562b8d306cb441d728922ac66ae31fe29e (patch)
tree0711f21ed35cc9af441f9bedec8bee77d39458f0 /firmware/src
parent684f7fd0d1b12b4a2c88a7305a1fc49b5e55a1a8 (diff)
Change Keyboard::leds to leds_mut following upstream change.
The function changed names while upstreaming it. Reverting back keyberon to upstream git instead following this change.
Diffstat (limited to 'firmware/src')
-rw-r--r--firmware/src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/src/main.rs b/firmware/src/main.rs
index e45b97c..7be4329 100644
--- a/firmware/src/main.rs
+++ b/firmware/src/main.rs
@@ -521,7 +521,7 @@ const APP: () = {
let bl_val = &mut backlight.brightness;
*bl_val = if *bl_val == 100 { 100 } else { *bl_val + 1 };
usb_class.lock(|k| {
- let leds = k.device_mut().leds();
+ let leds = k.device_mut().leds_mut();
leds.ws
.write(brightness(leds.leds.iter().cloned(), *bl_val));
});
@@ -530,7 +530,7 @@ const APP: () = {
let bl_val = &mut backlight.brightness;
*bl_val = if *bl_val == 0 { 0 } else { *bl_val - 1 };
usb_class.lock(|k| {
- let leds = k.device_mut().leds();
+ let leds = k.device_mut().leds_mut();
leds.ws
.write(brightness(leds.leds.iter().cloned(), *bl_val));
});
@@ -551,7 +551,7 @@ const APP: () = {
}
usb_class.lock(|k| {
- backlight.refresh_leds(&mut k.device_mut().leds());
+ backlight.refresh_leds(&mut k.device_mut().leds_mut());
});
c.resources.layout.tick();