thebigpotatoe / Super-Simple-RGB-WiFi-Lamp

A project based on the ESP8266 and WS2812b

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SaturationFade error

StefaanVanDooren opened this issue · comments

One shouldn't be able to set saturationFadeSpeed to 0, because this results in a division by zero an crashes the lamp

int fadeOffset = millis() / (fadeSpeed * 1000 / NUM_LEDS) % NUM_LEDS;