Skip to content

Commit

Permalink
fixup! drivers/ws281x: Add saul support
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKevinWeiss committed Apr 11, 2024
1 parent 87f75a5 commit 361455a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/ws281x/ws281x_saul.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ static int set_rgb_led(const void *dev, const phydat_t *res)
.g = res->val[1],
.b = res->val[2]
};
for (int i = 0; i < ws281x->params.numof; i++) {
for (unsigned idx = 0; idx < ws281x->params.numof; idx++) {
puts("Setting LED");
ws281x_set(ws281x, i, color);
ws281x_set(ws281x, idx, color);
}
ws281x_write(ws281x);
return 1;
Expand Down

0 comments on commit 361455a

Please sign in to comment.