2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

wrong calc for minus temp in T:

git-svn-id: https://svn.fhem.de/fhem/trunk@2394 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
wherzig 2012-12-30 15:49:44 +00:00
parent 804aeb268d
commit f032b307b0

View File

@ -199,7 +199,7 @@ dewpoint_Notify($$)
#my ($evName1, $val1, $evName2, $val2, $rest) = split(" ", $s, 5); # resets $1
#$lastval = $evName1." ".$val1." ".$evName2." ".$val2;
$lastval = $s;
if ($s =~ /T: [-+]?([0-9]*\.[0-9]+|[0-9]+)/) {
if ($s =~ /T: ([-+]?[0-9]*\.[0-9]+|[0-9]+)/) {
$temperature = $1;
}
if ($s =~ /H: [-+]?([0-9]*\.[0-9]+|[0-9]+)/) {