diff --git a/examples/ina226/ina226_main.c b/examples/ina226/ina226_main.c index e760397b5..69d040cdf 100644 --- a/examples/ina226/ina226_main.c +++ b/examples/ina226/ina226_main.c @@ -24,6 +24,7 @@ #include #include +#include #include #include #include @@ -70,7 +71,8 @@ int main(int argc, FAR char *argv[]) break; } - printf("U=%12u uV I=%12d uA\n", sample.voltage, sample.current); + printf("U=%12"PRIu32 "uV I=%12"PRIi32 "uA\n", sample.voltage, + sample.current); usleep(500000); }