From 9d3ad5269567d9ab7b228476ece96495300af5fc Mon Sep 17 00:00:00 2001 From: UncleRus Date: Tue, 9 Aug 2022 00:20:34 +0500 Subject: [PATCH] *: add missing include in components and examples --- components/bmp180/bmp180.c | 2 +- components/hmc5883l/hmc5883l.c | 1 + components/pca9685/pca9685.c | 2 +- components/rda5807m/rda5807m.c | 1 + examples/ds18x20/multi/main/main.c | 1 + examples/ina3221/default/main/main.c | 3 ++- examples/ls7366r/default/main/main.c | 1 + examples/mcp23x17/mcp23s17/main/main.c | 1 + examples/ms5611/default/main/main.c | 1 + examples/sgp40/default/main/main.c | 1 + 10 files changed, 11 insertions(+), 3 deletions(-) diff --git a/components/bmp180/bmp180.c b/components/bmp180/bmp180.c index a797740e..6497b5e5 100644 --- a/components/bmp180/bmp180.c +++ b/components/bmp180/bmp180.c @@ -35,7 +35,7 @@ * MIT Licensed as described in the file LICENSE */ #include "bmp180.h" - +#include #include #include #include diff --git a/components/hmc5883l/hmc5883l.c b/components/hmc5883l/hmc5883l.c index ffd1a425..61a32193 100644 --- a/components/hmc5883l/hmc5883l.c +++ b/components/hmc5883l/hmc5883l.c @@ -37,6 +37,7 @@ * BSD Licensed as described in the file LICENSE */ #include "hmc5883l.h" +#include #include #include #include diff --git a/components/pca9685/pca9685.c b/components/pca9685/pca9685.c index 8ec648ce..05fa1322 100644 --- a/components/pca9685/pca9685.c +++ b/components/pca9685/pca9685.c @@ -39,7 +39,7 @@ #include "pca9685.h" #include - +#include #include #include #include diff --git a/components/rda5807m/rda5807m.c b/components/rda5807m/rda5807m.c index ccbaf707..f4988f8b 100644 --- a/components/rda5807m/rda5807m.c +++ b/components/rda5807m/rda5807m.c @@ -35,6 +35,7 @@ * BSD Licensed as described in the file LICENSE */ #include "rda5807m.h" +#include #include #include #include diff --git a/examples/ds18x20/multi/main/main.c b/examples/ds18x20/multi/main/main.c index 129b1702..6e598b6e 100644 --- a/examples/ds18x20/multi/main/main.c +++ b/examples/ds18x20/multi/main/main.c @@ -1,3 +1,4 @@ +#include #include #include #include diff --git a/examples/ina3221/default/main/main.c b/examples/ina3221/default/main/main.c index c8cf39e0..69bd93a0 100644 --- a/examples/ina3221/default/main/main.c +++ b/examples/ina3221/default/main/main.c @@ -1,3 +1,4 @@ +#include #include #include #include @@ -91,7 +92,7 @@ void task(void *pvParameters) // Get voltage in millivolts and current in milliamperes ESP_ERROR_CHECK(ina3221_get_shunt_value(&dev, i, &shunt_voltage, &shunt_current)); - printf("\nC%u:Measure number %lu\n", i + 1, measure_number); + printf("\nC%u:Measure number %" PRIu32 "\n", i + 1, measure_number); if (warning && (i + 1) == WARNING_CHANNEL) printf("C%u:Warning Current > %.2f mA !!\n", i + 1, WARNING_CURRENT); printf("C%u:Bus voltage: %.02f V\n", i + 1, bus_voltage); diff --git a/examples/ls7366r/default/main/main.c b/examples/ls7366r/default/main/main.c index 35dcf540..3fc3037b 100644 --- a/examples/ls7366r/default/main/main.c +++ b/examples/ls7366r/default/main/main.c @@ -1,6 +1,7 @@ #include #include #include +#include #include #include #include diff --git a/examples/mcp23x17/mcp23s17/main/main.c b/examples/mcp23x17/mcp23s17/main/main.c index 3c4f080e..90171482 100644 --- a/examples/mcp23x17/mcp23s17/main/main.c +++ b/examples/mcp23x17/mcp23s17/main/main.c @@ -1,3 +1,4 @@ +#include #include #include #include diff --git a/examples/ms5611/default/main/main.c b/examples/ms5611/default/main/main.c index 7616cdea..a326a4a1 100644 --- a/examples/ms5611/default/main/main.c +++ b/examples/ms5611/default/main/main.c @@ -1,3 +1,4 @@ +#include #include #include #include diff --git a/examples/sgp40/default/main/main.c b/examples/sgp40/default/main/main.c index 4be1f6a6..625352d3 100644 --- a/examples/sgp40/default/main/main.c +++ b/examples/sgp40/default/main/main.c @@ -1,6 +1,7 @@ /** * Simple example with humidity sensor and SGP40 */ +#include #include #include #include