Browse Source

make pressure trend more sensitive

ir
Hendrik Langer 5 years ago
parent
commit
e422fbe9d8
  1. 8
      src/main.cpp

8
src/main.cpp

@ -278,13 +278,13 @@ void displayValues() {
float pressure_diff = history_pressure.getElement(0) - history_pressure.getFirst(); float pressure_diff = history_pressure.getElement(0) - history_pressure.getFirst();
display.setCursor(135,y_offset+45); display.setCursor(135,y_offset+45);
if (isnan(pressure_diff) || history_pressure.getCount() < history_pressure.getSize()) { if (isnan(pressure_diff) || history_pressure.getCount() < history_pressure.getSize()) {
} else if (pressure_diff > -20 && pressure_diff < -1.1) { } else if (pressure_diff > -20 && pressure_diff < -0.6) {
display.print("Trend: \x19\x19"); display.print("Trend: \x19\x19");
} else if (pressure_diff < -0.2) { } else if (pressure_diff < -0.1) {
display.print("Trend: \x19"); display.print("Trend: \x19");
} else if (pressure_diff < 0.2) { } else if (pressure_diff < 0.1) {
display.print("Trend: \x1a"); display.print("Trend: \x1a");
} else if (pressure_diff < 1.1) { } else if (pressure_diff < 0.6) {
display.print("Trend: \x18"); display.print("Trend: \x18");
} else if (pressure_diff < 20) { } else if (pressure_diff < 20) {
display.print("Trend: \x18\x18"); display.print("Trend: \x18\x18");

Loading…
Cancel
Save