Skip to content

Commit

Permalink
restored sps30 tests on init bacause without it fails
Browse files Browse the repository at this point in the history
  • Loading branch information
hpsaturn committed Jun 9, 2021
1 parent 47cabbf commit 91f7843
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Sensors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 91f7843

Please sign in to comment.