Skip to content
Snippets Groups Projects
Commit 27907c5d authored by Dennis Eisold's avatar Dennis Eisold
Browse files

Changed tendenz calculation to min 3 up/down

parent 247a3f85
No related branches found
No related tags found
No related merge requests found
...@@ -78,7 +78,7 @@ namespace Wetterstation ...@@ -78,7 +78,7 @@ namespace Wetterstation
oldTemp = temp; oldTemp = temp;
} }
} }
if ((up > 5 || down > 5) && _temperatures.Count == 10) if ((up > 2 || down > 2) && _temperatures.Count == 10)
{ {
if (up > down) return 180; if (up > down) return 180;
else if (down > up) return 0; else if (down > up) return 0;
...@@ -112,7 +112,7 @@ namespace Wetterstation ...@@ -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; if (up > down) return 180;
else if (down > up) return 0; else if (down > up) return 0;
else return -1; else return -1;
...@@ -144,7 +144,7 @@ namespace Wetterstation ...@@ -144,7 +144,7 @@ namespace Wetterstation
oldHumidity = humidity; oldHumidity = humidity;
} }
} }
if ((up > 5 || down > 5) && _humiditys.Count == 10) if ((up > 2 || down > 2) && _humiditys.Count == 10)
{ {
if (up > down) return 180; if (up > down) return 180;
else if (down > up) return 0; else if (down > up) return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment