diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/Cargo.toml | 2 | ||||
-rw-r--r-- | firmware/src/main.rs | 6 |
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(); |