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

msg: fix intiialization of reserved fields

This commit is contained in:
Steffen Vogel 2019-08-29 09:59:04 +02:00
parent bbe01d0bd2
commit 287f249735

View file

@ -110,6 +110,8 @@ int msg_from_sample(struct msg *msg_in, struct sample *smp, struct vlist *signal
{
msg_in->type = MSG_TYPE_DATA;
msg_in->version = MSG_VERSION;
msg_in->rsvd1 = 0;
msg_in->resv2 = 0;
msg_in->length = (uint16_t) smp->length;
msg_in->sequence = (uint32_t) smp->sequence;
msg_in->ts.sec = smp->ts.origin.tv_sec;