Skip to content

Commit

Permalink
possible fix to issue #101
Browse files Browse the repository at this point in the history
  • Loading branch information
hpsaturn committed Nov 27, 2021
1 parent 8a4792d commit 2817cc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Sensors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,8 @@ void Sensors::am2320Read() {
void Sensors::bme280Read() {
float humi1 = bme280.readHumidity();
float temp1 = bme280.readTemperature();
if (humi1 != 0) humi = humi1;
if (temp1 != 0) {
if (humi1 != NAN) humi = humi1;
if (temp1 != NAN) {
temp = temp1-toffset;
dataReady = true;
DEBUG("-->[SLIB] BME280 read > done!");
Expand Down

0 comments on commit 2817cc1

Please sign in to comment.