fix: use separate relay caches for status
This commit is contained in:
parent
0eef646fe0
commit
f98a01f3f0
13 changed files with 49 additions and 38 deletions
src/models
|
@ -273,7 +273,7 @@ controller_to_json(controller_t *controller)
|
|||
cJSON *json_relays = cJSON_CreateArray();
|
||||
for(int i = 0; relays[i] != NULL; ++i)
|
||||
{
|
||||
cJSON *json_relay = relay_to_json(relays[i]);
|
||||
cJSON *json_relay = relay_to_json(relays[i], 0);
|
||||
cJSON_AddItemToArray(json_relays, json_relay);
|
||||
}
|
||||
cJSON_AddItemToObject(json, "relays", json_relays);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue