From 58e7700f1fd337a1b43f25c7b387d308b91b34e9 Mon Sep 17 00:00:00 2001 From: Matteo Pignataro <matteo.pignataro@skywarder.eu> Date: Thu, 17 Mar 2022 11:53:06 +0100 Subject: [PATCH] [BME280] mistake adjusted --- src/shared/sensors/BME280/BME280.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/sensors/BME280/BME280.cpp b/src/shared/sensors/BME280/BME280.cpp index 233e6b14d..a1a8150a5 100644 --- a/src/shared/sensors/BME280/BME280.cpp +++ b/src/shared/sensors/BME280/BME280.cpp @@ -112,7 +112,7 @@ bool BME280::init() // If after the 5 iterations the sensor didn't report the configuration set // I can report the init error - if (readConfigResult) + if (!readConfigResult) { LOG_ERR(logger, "Device configuration incorrect, setup failed"); -- GitLab