diff options
Diffstat (limited to 'drivers/chibios/ws2812_spi.c')
| -rw-r--r-- | drivers/chibios/ws2812_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/chibios/ws2812_spi.c b/drivers/chibios/ws2812_spi.c index 3bbada7fe..7a1d2f05d 100644 --- a/drivers/chibios/ws2812_spi.c +++ b/drivers/chibios/ws2812_spi.c | |||
| @@ -36,7 +36,7 @@ | |||
| 36 | #define NB_COLORS 3 | 36 | #define NB_COLORS 3 |
| 37 | #define BYTES_FOR_LED (BYTES_FOR_LED_BYTE * NB_COLORS) | 37 | #define BYTES_FOR_LED (BYTES_FOR_LED_BYTE * NB_COLORS) |
| 38 | #define DATA_SIZE (BYTES_FOR_LED * RGBLED_NUM) | 38 | #define DATA_SIZE (BYTES_FOR_LED * RGBLED_NUM) |
| 39 | #define RESET_SIZE 200 | 39 | #define RESET_SIZE (1000 * WS2812_TRST_US / (2 * 1250)) |
| 40 | #define PREAMBLE_SIZE 4 | 40 | #define PREAMBLE_SIZE 4 |
| 41 | 41 | ||
| 42 | static uint8_t txbuf[PREAMBLE_SIZE + DATA_SIZE + RESET_SIZE] = {0}; | 42 | static uint8_t txbuf[PREAMBLE_SIZE + DATA_SIZE + RESET_SIZE] = {0}; |
