diff --git a/src/platform/smart_leds_lib.rs b/src/platform/smart_leds_lib.rs index 41f5eec..6b07801 100644 --- a/src/platform/smart_leds_lib.rs +++ b/src/platform/smart_leds_lib.rs @@ -56,7 +56,7 @@ impl, T: FastWrite> Output for StrideOutput { fn on_event(&mut self, event: &crate::events::Event) { match event { - crate::events::Event::PropertyChange("output.brightness", new_brightness) => self.brightness = new_brightness.clone().into(), + crate::events::Event::PropertyChange("output.brightness", Variant::Byte(new_brightness)) => self.brightness = *new_brightness, _ => () } }