Skip to content

Commit

Permalink
Merge pull request #8 from Sensirion/winkj-readsample-unique-ret
Browse files Browse the repository at this point in the history
Return unique error code for readSample()
  • Loading branch information
winkj authored Jan 23, 2020
2 parents f8c5e12 + 1da327d commit 70ddf9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdpsensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ int SDPSensor::readSample()
delay(100); // theoretically 45ms

if (I2CHelper::i2c_read(mI2CAddress, data, DATA_LEN) != 0) {
return 1;
return 2;
}

// TODO: check CRC
Expand Down

0 comments on commit 70ddf9f

Please sign in to comment.