File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ void loop() {
243
243
}
244
244
245
245
// Send humidity
246
- if (COMPARE_TEMP == 1 && abs (humidity - lastHumidity) < humThreshold) { // is the humidity difference bigger than the threshold?
246
+ if (COMPARE_HUM == 1 && abs (humidity - lastHumidity) < humThreshold) { // is the humidity difference bigger than the threshold?
247
247
Serial.print (humidity - lastHumidity);
248
248
Serial.println (" - BME280 - Humidity difference too small, so not sending the new measurement to the gateway." );
249
249
} else {
@@ -253,7 +253,7 @@ void loop() {
253
253
}
254
254
255
255
// Send pressure
256
- if (COMPARE_TEMP == 1 && abs (pressure - lastPressure) < presThreshold) { // is the pressure difference bigger than the threshold?
256
+ if (COMPARE_BARO == 1 && abs (pressure - lastPressure) < presThreshold) { // is the pressure difference bigger than the threshold?
257
257
Serial.print (pressure - lastPressure);
258
258
Serial.println (" - BME280 - Pressure difference too small, so not sending the new measurement to the gateway." );
259
259
} else {
You can’t perform that action at this time.
0 commit comments