From 329f6e4573a2458e776f625cf12e5b686abd3454 Mon Sep 17 00:00:00 2001 From: chrysn Date: Wed, 5 Jun 2024 22:41:22 +0200 Subject: [PATCH 1/2] drivers/ws281x: Remove unconditional debug output --- drivers/ws281x/ws281x_saul.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/ws281x/ws281x_saul.c b/drivers/ws281x/ws281x_saul.c index 88edc0dd0f..77ed578639 100644 --- a/drivers/ws281x/ws281x_saul.c +++ b/drivers/ws281x/ws281x_saul.c @@ -33,7 +33,6 @@ 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); From ad2a031e6c35d7023486deabac97ad35c4c3aeaf Mon Sep 17 00:00:00 2001 From: chrysn Date: Wed, 5 Jun 2024 22:41:40 +0200 Subject: [PATCH 2/2] drivers/ws281x: Return correct number of written elements --- drivers/ws281x/ws281x_saul.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ws281x/ws281x_saul.c b/drivers/ws281x/ws281x_saul.c index 77ed578639..cb62c8f404 100644 --- a/drivers/ws281x/ws281x_saul.c +++ b/drivers/ws281x/ws281x_saul.c @@ -36,7 +36,7 @@ static int set_rgb_led(const void *dev, const phydat_t *res) ws281x_set(ws281x, idx, color); } ws281x_write(ws281x); - return 1; + return 3; } const saul_driver_t ws281x_saul_driver = {