neopixel: Be sure to set the line low on a failed write

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-07-13 00:00:57 -04:00
parent be2d0abbab
commit 0af5b9ff6d
1 changed files with 2 additions and 1 deletions

View File

@ -87,7 +87,8 @@ send_data(struct neopixel_s *n, uint32_t data)
return 0; return 0;
fail: fail:
// A hardware irq messed up the transmission - report a failure // 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; return -1;
} }