Skip to content

Commit

Permalink
fix(LED): fix inverted b and r components
Browse files Browse the repository at this point in the history
  • Loading branch information
NeroReflex committed Dec 31, 2024
1 parent ac25809 commit 00efbb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input/source/led/multicolor_chassis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 00efbb9

Please sign in to comment.