From 6d13a0ff53cbfe479f464dd3ca8bc5d780d15bb1 Mon Sep 17 00:00:00 2001 From: Alexandre B Date: Sun, 7 Jul 2024 14:57:06 -0400 Subject: [PATCH] Update main.cpp --- ESP32-BME280/src/main.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ESP32-BME280/src/main.cpp b/ESP32-BME280/src/main.cpp index a570cb603..b346225e8 100644 --- a/ESP32-BME280/src/main.cpp +++ b/ESP32-BME280/src/main.cpp @@ -1,12 +1,18 @@ #include #include -#include -#include #include #define BMP280 +#ifdef BME280 +#include +#endif + +#ifdef BMP280 +#include +#endif + struct { float humidity = 0.0; float pressure = 0.0;