mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2026-10-31 22:02:17 +01:00
Merge pull request #58 from cjkas/cleanup/group-json-members
cleanup: drop the group members SomfyGroup::fromJSON threw away
This commit is contained in:
commit
9bef92d754
1 changed files with 1 additions and 9 deletions
|
|
@ -179,15 +179,7 @@ bool SomfyGroup::fromJSON(JsonObject &obj) {
|
||||||
|
|
||||||
//if(!obj["sunSensor"].isNull()) this->hasSunSensor() = obj["sunSensor"]; This is calculated
|
//if(!obj["sunSensor"].isNull()) this->hasSunSensor() = obj["sunSensor"]; This is calculated
|
||||||
if(!obj["repeats"].isNull()) this->repeats = obj["repeats"];
|
if(!obj["repeats"].isNull()) this->repeats = obj["repeats"];
|
||||||
if(!obj["linkedShades"].isNull()) {
|
// Members change only through /linkToGroup and /unlinkFromGroup (ModelEditor).
|
||||||
uint8_t linkedShades[SOMFY_MAX_GROUPED_SHADES];
|
|
||||||
memset(linkedShades, 0x00, sizeof(linkedShades));
|
|
||||||
JsonArray arr = obj["linkedShades"];
|
|
||||||
uint8_t i = 0;
|
|
||||||
for(uint8_t shadeId : arr) {
|
|
||||||
linkedShades[i++] = shadeId;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
bool Transceiver::fromJSON(JsonObject& obj) {
|
bool Transceiver::fromJSON(JsonObject& obj) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue