Skip to content

Commit

Permalink
leds: fix LEDS_FORMAT_RGBWI groups + segments
Browse files Browse the repository at this point in the history
  • Loading branch information
SpComb committed Feb 6, 2024
1 parent 45ff459 commit 43f3dfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/leds/format.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ void leds_set_format_rgbwi(struct leds *leds, const uint8_t *data, size_t len, s
struct leds_color pixel_color = leds_color_intensity(group_color, parameter_type, intensity);

for (unsigned j = 0; j < params.segment; j++) {
leds->pixels[params.offset + g * params.group + i * params.segment + j] = pixel_color;
leds->pixels[params.offset + (g * params.group + i) * params.segment + j] = pixel_color;
}
}
}
Expand Down

0 comments on commit 43f3dfe

Please sign in to comment.