1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #20731 from chrysn-pull-requests/ws281x-saul-write

drivers/ws281x: Fix SAUL writes
This commit is contained in:
Marian Buschsieweke 2024-06-05 21:04:51 +00:00 committed by GitHub
commit a62f10f7e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,11 +33,10 @@ static int set_rgb_led(const void *dev, const phydat_t *res)
.b = res->val[2]
};
for (unsigned idx = 0; idx < ws281x->params.numof; idx++) {
puts("Setting LED");
ws281x_set(ws281x, idx, color);
}
ws281x_write(ws281x);
return 1;
return 3;
}
const saul_driver_t ws281x_saul_driver = {