1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

path: fix bug causing missing data for some formats (e.g. JSON)

This commit is contained in:
Steffen Vogel 2019-01-12 13:49:27 +01:00
parent 0d767ca697
commit d741114500

View file

@ -744,7 +744,7 @@ int path_start(struct path *p)
p->last_sample->length = vlist_length(&p->signals);
p->last_sample->signals = &p->signals;
p->last_sample->sequence = 0;
p->last_sample->flags = 0;
p->last_sample->flags = p->last_sample->length > 0 ? SAMPLE_HAS_DATA : 0;
for (size_t i = 0; i < p->last_sample->length; i++) {
struct signal *sig = (struct signal *) vlist_at(p->last_sample->signals, i);