Update ina260 driver configutation

This commit is contained in:
Loic Guegan 2023-08-11 10:02:04 +02:00
parent ce5597547c
commit e0eca2e664
2 changed files with 2 additions and 2 deletions

View file

@ -59,7 +59,7 @@ int main(int argc, char *argv[]) {
strcat(regpower, "/"); strcat(regpower, "/");
strcat(regpower, client); strcat(regpower, client);
strcat(regpower, "/"); strcat(regpower, "/");
strcat(regpower, INA260_POWER_REGISTER); strcat(regpower, INA260_POWER_OUTPUT);
//----- Sanity checks //----- Sanity checks
signal(SIGINT, sighandler); signal(SIGINT, sighandler);

View file

@ -8,7 +8,7 @@
#define MIN_INTERVAL 0 #define MIN_INTERVAL 0
#define INA260_SYSFS "/sys/kernel/ina260" #define INA260_SYSFS "/sys/kernel/ina260"
#define INA260_POWER_REGISTER "registers/power" #define INA260_POWER_OUTPUT "power"
#define STATIC_LEN 255 #define STATIC_LEN 255
#define MAX_RECORD_LEN 100 #define MAX_RECORD_LEN 100
#define CSV_HEADER "timestamp,nsecs,power" #define CSV_HEADER "timestamp,nsecs,power"