zestyping / openpixelcontrol

A simple stream protocol for controlling arrays of RGB lights.
http://openpixelcontrol.org/
353 stars 103 forks source link

gl_server: avoid that superflous extra pixels bleed into the next cha… #35

Closed simon-budig closed 7 years ago

simon-budig commented 7 years ago

…nnel

I am using olad to transmit openpixelcontrol packets. One Universe in OLA is mapped to 128 pixels (384 channels), but OLA apparently always transmits 512 channels. gl_server behaves rather erratically since these channels were unconditionally used for the next neighbor channel.

This patch makes sure that each channel only affects the LEDs belonging to it.

zestyping commented 7 years ago

Thanks! This looks good.