mirror of
https://gitlab.com/manzerbredes/ina260-zmq-publisher.git
synced 2025-04-06 03:46:25 +02:00
Minor changes
This commit is contained in:
parent
f66e5bf74f
commit
4169628e57
2 changed files with 8 additions and 1 deletions
|
@ -12,12 +12,17 @@
|
|||
#include "utils.h"
|
||||
#include <time.h>
|
||||
|
||||
// Global:
|
||||
char __client*;
|
||||
char __logdir*;
|
||||
int __logfrequency,
|
||||
|
||||
void start(char *power_path, char *busid, char *chipaddr);
|
||||
|
||||
int main (int argc, char *argv [])
|
||||
{
|
||||
if(argc != 3){
|
||||
printf("Usage: %s <logdir> <client> <logfrequency>",argv[0]);
|
||||
printf("Usage: %s <abslogdir> <client> <logfrequency>",argv[0]);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#define STR(symbol) #symbol
|
||||
#define STRINGIFY(symbol) STR(symbol)
|
||||
|
||||
#define INA260_SYSFS "/sys/kernel/ina260"
|
||||
#define INA260_POWER_REGISTER "registers/power"
|
||||
|
|
Loading…
Add table
Reference in a new issue