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

Merge branch 'master' into 'master'

Changed tendenz calculation to min 3 up/down

See merge request !46
parents 1917fdab 27907c5d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
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