Skip to content

Bugfix: COMPARE_BARO and COMPARE_HUM were unused. #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/PressureSensor/PressureSensor.ino
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ void loop() {
}

// Send humidity
if (COMPARE_TEMP == 1 && abs(humidity - lastHumidity) < humThreshold) { // is the humidity difference bigger than the threshold?
if (COMPARE_HUM == 1 && abs(humidity - lastHumidity) < humThreshold) { // is the humidity difference bigger than the threshold?
Serial.print(humidity - lastHumidity);
Serial.println("- BME280 - Humidity difference too small, so not sending the new measurement to the gateway.");
} else {
Expand All @@ -253,7 +253,7 @@ void loop() {
}

// Send pressure
if (COMPARE_TEMP == 1 && abs(pressure - lastPressure) < presThreshold) { // is the pressure difference bigger than the threshold?
if (COMPARE_BARO == 1 && abs(pressure - lastPressure) < presThreshold) { // is the pressure difference bigger than the threshold?
Serial.print(pressure - lastPressure);
Serial.println("- BME280 - Pressure difference too small, so not sending the new measurement to the gateway.");
} else {
Expand Down