shinyblink / sled

Satanic/Sexy/Stupid/Silly/Shiny LED matrix controller
https://shinyblink.github.io/sled/
ISC License
121 stars 25 forks source link

Don't send 0 bytes to pixelflut servers #131

Closed M4GNV5 closed 3 years ago

M4GNV5 commented 3 years ago

I wrote a custom pixelflut server in python to use this project with my LED matrix which is controlled via python. I noticed i often get a line which looks like this: b'\x00PX 0000 0000 ff9400'

Before this commit the pixelflut client implementation would occasionally send zero bytes (as in value not length) to the pixelflut server. This patch makes sure each pixelflut command is exactly 20 chars long and terminated by a newline rather than a zero byte.

vifino commented 3 years ago

Awesome! Thanks for noticing! Since CI currently does not test out_pixelflut, I'll just merge it now.