diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2021-11-21 01:47:35 -0700 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2021-11-21 01:47:35 -0700 |
commit | 41574c410661c7ce9231cf9c29602f307f393276 (patch) | |
tree | eb79c417a11271961143c82b3517efceb6bff2a6 /main/drv/ws2812b.c | |
parent | 47f0d11301c71819ced150deb96b7304ee10bab1 (diff) | |
download | esp32-ws2812b-41574c410661c7ce9231cf9c29602f307f393276.tar.gz esp32-ws2812b-41574c410661c7ce9231cf9c29602f307f393276.tar.bz2 esp32-ws2812b-41574c410661c7ce9231cf9c29602f307f393276.zip |
Add .clang-format and run clang-format.
Diffstat (limited to 'main/drv/ws2812b.c')
-rw-r--r-- | main/drv/ws2812b.c | 4 |
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_; |