todbot / Blink1Control2

Blink1Control GUI to control blink(1) USB RGB LED devices.
http://blink1.thingm.com/
Apache License 2.0
154 stars 26 forks source link

Color Pattern String parsing fails when no `ledn` specified #154

Open todbot opened 3 years ago

todbot commented 3 years ago

Color pattern strings specified via the REST API like:

curl 'http://localhost:8934/blink1/pattern/add?pname=blink3green&pattern=3,%2300ff00,1.5,%23000000,0.5'

were being parsed incorrectly. The ledn parameter should be optional so the following should all be valid:

todbot commented 3 years ago

Should be fixed with 88a9dc57bd143371f147c964d787f1b6401a6a53