mirror of
https://gitlab.com/manzerbredes/ina260-zmq-publisher.git
synced 2025-04-19 12:19:46 +00:00
Minor changes
This commit is contained in:
parent
a871d050ed
commit
8f78b632bf
2 changed files with 3 additions and 2 deletions
|
@ -120,8 +120,8 @@ int main (int argc, char *argv [])
|
|||
if(queues[queue_id].size+linelen>ZMQ_MSG_SIZE){
|
||||
printf("To many measurements to publish. Please increase ZMQ_MSG_SIZE\n");
|
||||
} else {
|
||||
strcat(queues[queue_id].msg,line);
|
||||
queues[queue_id].size+=strlen(line);
|
||||
memcpy(queues[queue_id].msg+queues[queue_id].size,line,linelen);
|
||||
queues[queue_id].size+=linelen;
|
||||
}
|
||||
// Reset power register file:
|
||||
fseek(regptr,0,SEEK_SET);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue