Minor changes

This commit is contained in:
Loic Guegan 2023-07-17 18:08:13 +02:00
parent a871d050ed
commit 8f78b632bf
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View file

@ -6,5 +6,6 @@
# Caches
/logs
/data
/cdata
/pid
/logger_*.log

View file

@ -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);