From 00efbb9023bd751b68005342364e32a0d7ab17e2 Mon Sep 17 00:00:00 2001 From: Denis Benato Date: Tue, 31 Dec 2024 22:39:01 +0100 Subject: [PATCH] fix(LED): fix inverted b and r components --- src/input/source/led/multicolor_chassis.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/source/led/multicolor_chassis.rs b/src/input/source/led/multicolor_chassis.rs index df9d0c1..73ffdd6 100644 --- a/src/input/source/led/multicolor_chassis.rs +++ b/src/input/source/led/multicolor_chassis.rs @@ -90,7 +90,7 @@ impl MultiColorChassis { .zip(contents.split_whitespace().into_iter()) .map(|(index_type, index_value)| match index_type { IndexType::RGB => { - (((r as u32) << 0u32) | ((g as u32) << 8u32) | ((b as u32) << 16u32)) + (((r as u32) << 16u32) | ((g as u32) << 8u32) | ((b as u32) << 0u32)) .to_string() } _ => String::from(index_value),