From 462de0af9914bba8a1c3521333406b30f2ca966e Mon Sep 17 00:00:00 2001 From: Victoria Fischer Date: Sat, 14 Mar 2026 12:15:38 +0100 Subject: [PATCH] graphics: display: also add power setting to the sync version --- src/graphics/display.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/graphics/display.rs b/src/graphics/display.rs index af903b9..0349405 100644 --- a/src/graphics/display.rs +++ b/src/graphics/display.rs @@ -60,6 +60,7 @@ impl<'a, T: SmartLedsWriteAsync + 'a> OutputAsync<'a, SegmentSpace> for BikeOutp async fn commit_async(&mut self) -> Result<(), T::Error> where T: SmartLedsWriteAsync { self.writer.controls().set_brightness(self.controls.brightness()); self.writer.controls().set_on(self.controls.is_on()); + self.writer.controls().set_max_power(self.controls.max_power()); // TODO: We should grab the power used here and somehow feed it back into the telemetry layer, probably just via another atomic u32 self.writer.write_async(&self.pixbuf).await }