From 2153a0562b8d306cb441d728922ac66ae31fe29e Mon Sep 17 00:00:00 2001 From: Marc Poulhiès Date: Sat, 16 Jan 2021 15:07:55 +0100 Subject: 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. --- firmware/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware/src') 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(); -- cgit v1.2.3