diff --git a/Wetterstation/Sensor.cs b/Wetterstation/Sensor.cs index a809799306d042903eda2efd5d1cce02a5f02c8b..a804548a8a839422ae39172fec675c2a0627895b 100644 --- a/Wetterstation/Sensor.cs +++ b/Wetterstation/Sensor.cs @@ -78,7 +78,7 @@ namespace Wetterstation oldTemp = temp; } } - if ((up > 5 || down > 5) && _temperatures.Count == 10) + if ((up > 2 || down > 2) && _temperatures.Count == 10) { if (up > down) return 180; else if (down > up) return 0; @@ -112,7 +112,7 @@ namespace Wetterstation } } - if ((up > 5 || down > 5) && _pressures.Count == 10) { + if ((up > 2 || down > 2) && _pressures.Count == 10) { if (up > down) return 180; else if (down > up) return 0; else return -1; @@ -144,7 +144,7 @@ namespace Wetterstation oldHumidity = humidity; } } - if ((up > 5 || down > 5) && _humiditys.Count == 10) + if ((up > 2 || down > 2) && _humiditys.Count == 10) { if (up > down) return 180; else if (down > up) return 0;