From 1c35094cfa3382bd61f4fe4d4846b6192b96838e Mon Sep 17 00:00:00 2001 From: Ollo Date: Mon, 6 Dec 2021 20:28:34 +0100 Subject: [PATCH] Wait until power is stable for BME680 --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 600955e..f4b8323 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -391,6 +391,10 @@ void setup() if (i2cEnable.get()) { strip.fill(strip.Color(0,128,0)); strip.show(); +#ifdef BME680 + printf("Wait 1 second...\r\n"); + delay(1000); +#endif /* Extracted from library's example */ mFailedI2Cinitialization = !bmx.begin(); if (!mFailedI2Cinitialization) {