Skip to content

Percent effect starts by zero at every value change #4934

@LOGOLEX

Description

@LOGOLEX

What happened?

Since last update the percent effect starts at zero instead of the last value.
i use this effect with two presets to light my stairs.

in the previous firmware it moved from 100 to 0 percent backwards. now it turns immediately to zero.

My presets below.

To Reproduce Bug

Preset 1 (Turns the lights on):
{"on":true,"bri":47,"transition":1,"mainseg":0,"seg":[{"id":0,"start":0,"stop":307,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":255,"cct":127,"set":0,"col":[[117,71,36,0],[0,0,0,0],[0,0,0,0]],"fx":98,"sx":15,"ix":100,"pal":0,"c1":128,"c2":128,"c3":16,"sel":true,"rev":false,"mi":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":0},{"id":1,"start":307,"stop":726,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":255,"cct":127,"set":0,"col":[[117,71,36,0],[0,0,0,0],[0,0,0,0]],"fx":98,"sx":18,"ix":100,"pal":0,"c1":128,"c2":128,"c3":16,"sel":true,"rev":true,"mi":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0}]}

Preset 2 (turns the leds off):
{"on":true,"bri":47,"transition":7,"mainseg":0,"seg":[{"id":0,"start":0,"stop":307,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":255,"cct":127,"set":0,"col":[[117,71,36,0],[0,0,0,0],[0,0,0,0]],"fx":98,"sx":15,"ix":0,"pal":0,"c1":128,"c2":128,"c3":16,"sel":true,"rev":false,"mi":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":0},{"id":1,"start":307,"stop":726,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":255,"cct":127,"set":0,"col":[[117,71,36,0],[0,0,0,0],[0,0,0,0]],"fx":98,"sx":18,"ix":0,"pal":0,"c1":128,"c2":128,"c3":16,"sel":true,"rev":true,"mi":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0}]}

Expected Behavior

effect (preset 2 as given) should move backwards from 100 to zero instead of turning all leds off.

Install Method

Binary from WLED.me

What version of WLED?

V0.15.1 "Kösen" Build 2507300

Which microcontroller/board are you seeing the problem on?

ESP32-S2

Relevant log/trace output

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions