fix: report the real flipPosition for linked shades

serializeShadeRef sent flipCommands as flipPosition, so group linked
shades and the /shadeCommand reply showed the wrong setting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
cjkas 2026-10-11 20:50:42 +02:00
parent 6b19d24eb4
commit f1eac31957

View file

@ -308,7 +308,7 @@ static void serializeShadeRef(SomfyShade *shade, JsonFormatter &json) {
json.addElem("paired", shade->paired); json.addElem("paired", shade->paired);
json.addElem("shadeType", static_cast<uint8_t>(shade->shadeType)); json.addElem("shadeType", static_cast<uint8_t>(shade->shadeType));
json.addElem("flipCommands", shade->flipCommands); json.addElem("flipCommands", shade->flipCommands);
json.addElem("flipPosition", shade->flipCommands); json.addElem("flipPosition", shade->flipPosition);
json.addElem("bitLength", shade->bitLength); json.addElem("bitLength", shade->bitLength);
json.addElem("proto", static_cast<uint8_t>(shade->proto)); json.addElem("proto", static_cast<uint8_t>(shade->proto));
json.addElem("flags", shade->flags); json.addElem("flags", shade->flags);