mirror of
https://gitlab.com/manzerbredes/ina260-zmq-publisher.git
synced 2025-04-05 11:26:25 +02:00
Use float for power
This commit is contained in:
parent
e0eca2e664
commit
f68447e201
1 changed files with 2 additions and 2 deletions
|
@ -128,8 +128,8 @@ int main(int argc, char *argv[]) {
|
|||
printf(
|
||||
"Too many measurements to publish. Please increase ZMQ_MSG_SIZE\n");
|
||||
} else {
|
||||
sprintf(queues[queue_id].msg + queues[queue_id].size, "%ld,%ld,%d\n",
|
||||
power_ts.tv_sec, power_ts.tv_nsec, atoi(buffer));
|
||||
sprintf(queues[queue_id].msg + queues[queue_id].size, "%ld,%ld,%f\n",
|
||||
power_ts.tv_sec, power_ts.tv_nsec, atof(buffer));
|
||||
queues[queue_id].size +=
|
||||
strlen(queues[queue_id].msg + queues[queue_id].size);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue