WLED icon indicating copy to clipboard operation
WLED copied to clipboard

switching segments with json doesn't work right since version 0.12.0

Open Jojopirat opened this issue 2 years ago • 2 comments

What happened?

I have created a desklight the first four leds should show me status of some objects, the rest should be able to switch on and off. I realized this by the following json object: {"seg":[{"id":0,"i":[[0,0,0,0],[0,255,0,0],[0,0,0,0],[0,0,0,0]],"on":true,"bri":100},{"id":1,"on":true,"bri":100}]} in version 0.11.0 this works. By switching the value of "on" in the second segment the light turn on and off. since version 0.12.0 by switching the value on the second segment, also the first segment turn on and off. But it happens only if the json object is send a second time. In my project this happens by resend it after checking the state of status leds periodically.

To Reproduce Bug

sending json object with two segments in witch "on" value of the secound segment is false and the "on" value of the first is set to true.

Expected Behavior

Only the second segment should be switched off.

Install Method

Binary from WLED.me

What version of WLED?

WLED_0.13.0-b6_ESP8266

Which microcontroller/board are you seeing the problem on?

ESP8266

Relevant log/trace output

No response

Anything else?

with version 0.11.0 it works fine, after this version it fails.

Code of Conduct

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

Jojopirat avatar Dec 08 '21 21:12 Jojopirat

Please check latest master and report back.

blazoncek avatar Feb 12 '22 10:02 blazoncek

Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs. Thank you for using WLED!

stale[bot] avatar Jul 10 '22 22:07 stale[bot]

@blazoncek can we close this issue?

softhack007 avatar Jan 06 '23 21:01 softhack007

I think yes. Either I do not correctly understand the problem or I cannot reproduce.

blazoncek avatar Jan 07 '23 06:01 blazoncek