fablab-luenen / McLighting

The ESP8266 based multi-client lighting gadget
MIT License
215 stars 30 forks source link

Color_Wipe Does Not Respect Speed Setting When First Called #121

Open ryancasler opened 2 years ago

ryancasler commented 2 years ago

Describe the bug Making an HTTP call to the strip to either turn it on to Color_Wipe (mode 3) or turn set it to color_wipe while the strip is off results in the strip not respecting the speed parameter that was previously set.
To Reproduce 1.Set the strip to mode 3 at a very slow speed via the Web GUI.

  1. Turn the strip off.
  2. Turn the strip back on.
  3. The Strip will run the color wipe pattern at a very fast rate for ~2 rotations and then begin respecting the speed setting that was previously set.

You can also see this if you first set the speed high and then switch it to low. If you set the speed to about 100 and then set it to 2 via an HTTP call, the animation actually speeds up first, rather than going directly to being slowed down.

You also see it if the speed is VERY high and then switched to VERY low. So, if you go from a speed of 240 down to a speed of 4, it does not change instantly. It first changes to a speed somewhere in between the two first, then begins using the speed that was commanded.

Expected behavior Respect the speed that was ordered and use it immediately.