From e0eca2e6644e791b5523833d3792b1020b81d2ce Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Fri, 11 Aug 2023 10:02:04 +0200 Subject: [PATCH] Update ina260 driver configutation --- src/publisher.c | 2 +- src/utils.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/publisher.c b/src/publisher.c index 607c4d7..ce6df70 100644 --- a/src/publisher.c +++ b/src/publisher.c @@ -59,7 +59,7 @@ int main(int argc, char *argv[]) { strcat(regpower, "/"); strcat(regpower, client); strcat(regpower, "/"); - strcat(regpower, INA260_POWER_REGISTER); + strcat(regpower, INA260_POWER_OUTPUT); //----- Sanity checks signal(SIGINT, sighandler); diff --git a/src/utils.h b/src/utils.h index 3bcc09e..1932f11 100644 --- a/src/utils.h +++ b/src/utils.h @@ -8,7 +8,7 @@ #define MIN_INTERVAL 0 #define INA260_SYSFS "/sys/kernel/ina260" -#define INA260_POWER_REGISTER "registers/power" +#define INA260_POWER_OUTPUT "power" #define STATIC_LEN 255 #define MAX_RECORD_LEN 100 #define CSV_HEADER "timestamp,nsecs,power"