improve output generation

This commit is contained in:
King Kévin 2015-07-23 10:45:15 +02:00
parent 66ca3d2652
commit ddb6a24109
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ void ws2812b_show(void)
uint8_t high = WS2812B_PORT | WS2812B_MASK; // set all WS2812B pins to high
uint8_t low = WS2812B_PORT & ~WS2812B_MASK; // set all WS2812B pins to low
uint8_t * next = color_bits; // a pointer to the next color bit
uint8_t out = low | *(next++); // the next bit to send
uint8_t out = *(next++); // the next bit to send
while (!reset_code); // wait for previous reset code to finish