diff options
| author | hathach <thach@tinyusb.org> | 2019-01-08 00:21:31 +0700 |
|---|---|---|
| committer | hathach <thach@tinyusb.org> | 2019-01-08 00:21:31 +0700 |
| commit | 215008f78cbd30739b7899f3aa8f56940fa471ad (patch) | |
| tree | 5cf58a22ca2fbd23bd75f24c137ea2cbf1b3e3dc | |
| parent | 67522666737eb9c264b815ed0b33d3f0b0687652 (diff) | |
clean up neopixel write !!
| -rw-r--r-- | ports/nrf/common-hal/neopixel_write/__init__.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/nrf/common-hal/neopixel_write/__init__.c b/ports/nrf/common-hal/neopixel_write/__init__.c index c9da436b8..f810a44cc 100644 --- a/ports/nrf/common-hal/neopixel_write/__init__.c +++ b/ports/nrf/common-hal/neopixel_write/__init__.c @@ -141,7 +141,7 @@ void common_hal_neopixel_write (const digitalio_digitalinout_obj_t* digitalinout for ( uint16_t n = 0; n < numBytes; n++ ) { uint8_t pix = pixels[n]; - for ( uint8_t mask = 0x80, i = 0; mask > 0; mask >>= 1, i++ ) { + for ( uint8_t mask = 0x80; mask > 0; mask >>= 1 ) { pixels_pattern[pos] = (pix & mask) ? MAGIC_T1H : MAGIC_T0H; pos++; } |
