We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79ace2d commit 0363280Copy full SHA for 0363280
src/lib/protocol/protocol.c
@@ -421,6 +421,7 @@ static cJSON *serialize_camera(const struct camera in) {
421
cJSON_AddNumberToObject(out, "time", in.time);
422
cJSON_AddNumberToObject(out, "width", in.width);
423
cJSON_AddNumberToObject(out, "height", in.height);
424
+ cJSON_AddNumberToObject(out, "is_blender", in.is_blender ? 1 : 0);
425
return out;
426
}
427
@@ -445,6 +446,7 @@ static struct camera deserialize_camera(const cJSON *in) {
445
446
out.time = cJSON_GetNumberValue(cJSON_GetObjectItem(in, "time"));
447
out.width = cJSON_GetNumberValue(cJSON_GetObjectItem(in, "width"));
448
out.height = cJSON_GetNumberValue(cJSON_GetObjectItem(in, "height"));
449
+ out.is_blender = cJSON_GetNumberValue(cJSON_GetObjectItem(in, "is_blender"));
450
451
452
0 commit comments