From 0af5b9ff6d43fc5ca9a3139bcb207800105a85d3 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 13 Jul 2019 00:00:57 -0400 Subject: [PATCH] neopixel: Be sure to set the line low on a failed write Signed-off-by: Kevin O'Connor --- src/neopixel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/neopixel.c b/src/neopixel.c index 2fc02dd7..8954d25d 100644 --- a/src/neopixel.c +++ b/src/neopixel.c @@ -87,7 +87,8 @@ send_data(struct neopixel_s *n, uint32_t data) return 0; fail: // A hardware irq messed up the transmission - report a failure - n->last_req_time = cur; + gpio_out_write(pin, 0); + n->last_req_time = timer_read_time(); return -1; }