graphics: display: also add power setting to the sync version

This commit is contained in:
2026-03-14 12:15:38 +01:00
parent 040a419a2f
commit 462de0af99

View File

@@ -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
}