blazoncek / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!
MIT License
31 stars 0 forks source link

Non existing effect in preset causes crash #42

Closed ewoudwijma closed 2 years ago

ewoudwijma commented 2 years ago

If a usermod adds an effect using strip.addEffect(255, ...) and a preset of this effect is saved and after that the usermod is removed, the preset will cause a crash.

Solution: test if effect with id exists in service.

blazoncek commented 2 years ago

Hopefully fixed in dc700c41fbb042259b9c95ebe9ae1535f600ab78