summaryrefslogtreecommitdiff
path: root/firmware
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
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')
-rw-r--r--firmware/Cargo.toml2
-rw-r--r--firmware/src/main.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/firmware/Cargo.toml b/firmware/Cargo.toml
index 9086d9b..6530914 100644
--- a/firmware/Cargo.toml
+++ b/firmware/Cargo.toml
@@ -10,7 +10,7 @@ stm32f0xx-hal = { git = "https://github.com/dkm/stm32f0xx-hal/", features = ["rt
cortex-m = "0.6"
cortex-m-rt = { version = "0.6", features = ["device"] }
panic-halt = "0.2"
-keyberon = { git = "https://github.com/dkm/keyberon" }
+keyberon = { git = "https://github.com/TeXiToi/keyberon" }
cortex-m-rtic = "0.5"
generic-array = "0.13"
embedded-hal = "0.2"
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();