From ff610fa6aa07eaca09576ddcd916b8c0391af458 Mon Sep 17 00:00:00 2001 From: Victoria Fischer Date: Sat, 23 Nov 2024 14:52:36 +0100 Subject: [PATCH] platform: smart_leds: use 310 pixels instead of 300 --- src/platform/smart_leds_lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/smart_leds_lib.rs b/src/platform/smart_leds_lib.rs index 99c6ed5..2bb4f83 100644 --- a/src/platform/smart_leds_lib.rs +++ b/src/platform/smart_leds_lib.rs @@ -153,7 +153,7 @@ pub mod rmt { impl DisplayInit for LedPixelEsp32Rmt<'_, CSmart, CDev> where CSmart: HardwarePixel, - [CSmart; 300]: Pixbuf, + [CSmart; 310]: Pixbuf, CDev: LedPixelColor + From, Rgb: From { @@ -167,7 +167,7 @@ pub mod rmt { const MAX_POWER_MW : u32 = POWER_VOLTS * POWER_MA; let target = Self::new(channel, led_pin).unwrap(); - return SmartLedDisplay::::new(target, MAX_POWER_MW); + return SmartLedDisplay::::new(target, MAX_POWER_MW); } } }