From 91f784385f6d52b95bff208bd38e442922796726 Mon Sep 17 00:00:00 2001 From: Antonio Vanegas Date: Wed, 9 Jun 2021 14:34:48 +0200 Subject: [PATCH] restored sps30 tests on init bacause without it fails --- src/Sensors.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Sensors.cpp b/src/Sensors.cpp index 874155de..dd800b68 100644 --- a/src/Sensors.cpp +++ b/src/Sensors.cpp @@ -730,15 +730,13 @@ bool Sensors::sps30I2CInit() { sps30Errorloop((char *)"-->[E][SPS30] Could not set I2C communication channel.", 0); return false; } - Serial.println("-->[I2CS] detected SPS30 sensor :)"); - if (devmode) { - if (!sps30tests()) return false; - } + if (!sps30tests()) return false; // start measurement if (sps30.start()) { DEBUG("-->[SPS30] Measurement OK"); + Serial.println("-->[I2CS] detected SPS30 sensor :)"); device_selected = "SENSIRION"; device_type = Sensirion; if (sps30.I2C_expect() == 4)