Browse Source

pressure trend: arrows

ir
Hendrik Langer 5 years ago
parent
commit
37c1e8c99e
  1. 10
      src/main.cpp

10
src/main.cpp

@ -279,15 +279,15 @@ void displayValues() {
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 < -1.1) {
display.print("Trend: --"); display.print("Trend: \x19\x19");
} else if (pressure_diff < -0.2) { } else if (pressure_diff < -0.2) {
display.print("Trend: -"); display.print("Trend: \x19");
} else if (pressure_diff < 0.2) { } else if (pressure_diff < 0.2) {
display.print("Trend: ="); display.print("Trend: \x1a");
} else if (pressure_diff < 1.1) { } else if (pressure_diff < 1.1) {
display.print("Trend: +"); display.print("Trend: \x18");
} else if (pressure_diff < 20) { } else if (pressure_diff < 20) {
display.print("Trend: ++"); display.print("Trend: \x18\x18");
} else { } else {
display.print("?"); display.print("?");
} }

Loading…
Cancel
Save