From 1ada6a18b056da6b2ef5ba0560c3e309322d51a8 Mon Sep 17 00:00:00 2001 From: Alexandre B Date: Sun, 14 Jul 2024 00:27:19 -0400 Subject: [PATCH] . --- ESP32-C3-sm_I2C/src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ESP32-C3-sm_I2C/src/main.cpp b/ESP32-C3-sm_I2C/src/main.cpp index 7bf425b1d..31f000064 100644 --- a/ESP32-C3-sm_I2C/src/main.cpp +++ b/ESP32-C3-sm_I2C/src/main.cpp @@ -20,8 +20,8 @@ void setup() { Serial.println("Setting up BME280 sensor"); Wire.setPins(SDA_PIN, SCL_PIN); Wire.begin(); - /*unsigned status = bme.begin(0x76); // 0x76 - if (!status) { + //unsigned status = bme.begin(0x76); // 0x76 + if (!bme.begin(0x76)) { Serial.println("Could not find a valid BME/BMP280 sensor, check wiring!"); Serial.print("SensorID was: 0x"); Serial.println(bme.sensorID(),16); Serial.print(" ID of 0xFF probably means a bad address, a BMP 180 or BMP 085\n"); @@ -34,7 +34,7 @@ void setup() { digitalWrite(LED_PIN, HIGH); delay(250); } - }*/ + } } void loop() {