aboutsummaryrefslogtreecommitdiff
path: root/main/drv/ws2812b.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/drv/ws2812b.c')
-rw-r--r--main/drv/ws2812b.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/drv/ws2812b.c b/main/drv/ws2812b.c
index aaa3c07..3ab6b41 100644
--- a/main/drv/ws2812b.c
+++ b/main/drv/ws2812b.c
@@ -27,7 +27,7 @@ static inline void byte_compile(uint8_t byte, uint8_t compl [3])
static inline void compile(ws2812b_buffer_t* buffer)
{
- for (size_t i = 0; i < buffer->n_rgb; ++ i) {
+ for (size_t i = 0; i < buffer->n_rgb; ++i) {
byte_compile(buffer->rgb[i].g, buffer->buf_ + i * 9 + 0);
byte_compile(buffer->rgb[i].r, buffer->buf_ + i * 9 + 3);
byte_compile(buffer->rgb[i].b, buffer->buf_ + i * 9 + 6);
@@ -48,7 +48,7 @@ esp_err_t ws2812b_write_sync(ws2812b_t* drv, ws2812b_buffer_t* buffer)
esp_err_t err;
compile(buffer);
- spi_transaction_t t = { 0 };
+ spi_transaction_t t = {0};
spi_transaction_t* rt;
t.tx_buffer = buffer->buf_;