mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-30 00:00:11 +01:00
hypersim: fix invalid message length
This commit is contained in:
parent
d12d8ff4d4
commit
668c3b039c
1 changed files with 2 additions and 3 deletions
|
@ -745,9 +745,8 @@ struct sockaddr_in rec_addr;
|
|||
msg->ts.sec = htonl(msg->ts.sec);
|
||||
msg->ts.nsec = htonl(msg->ts.nsec);
|
||||
|
||||
ret = sendto(sockfds, (char *) msg, sizeof(buf), 0, (struct sockaddr *) &send_addr, sizeof(send_addr));
|
||||
}
|
||||
|
||||
ret = sendto(sockfds, (char *) msg, MSG_LEN(NO_SEND_DATA), 0, (struct sockaddr *) &send_addr, sizeof(send_addr));
|
||||
}
|
||||
|
||||
%% END AFTER VOLTAGE CALCULATION CODE
|
||||
%%^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
Loading…
Add table
Reference in a new issue