From e422fbe9d840e9ef413d7840972809358c02571c Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Wed, 31 Jul 2019 14:21:45 +0200 Subject: [PATCH] make pressure trend more sensitive --- src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index c7706d5..1d4d317 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -278,13 +278,13 @@ void displayValues() { float pressure_diff = history_pressure.getElement(0) - history_pressure.getFirst(); display.setCursor(135,y_offset+45); 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"); - } else if (pressure_diff < -0.2) { + } else if (pressure_diff < -0.1) { display.print("Trend: \x19"); - } else if (pressure_diff < 0.2) { + } else if (pressure_diff < 0.1) { display.print("Trend: \x1a"); - } else if (pressure_diff < 1.1) { + } else if (pressure_diff < 0.6) { display.print("Trend: \x18"); } else if (pressure_diff < 20) { display.print("Trend: \x18\x18");