fixed humidity

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4372 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2013-12-13 09:05:13 +00:00
parent e7faf8da2d
commit d18e66e3f4

View File

@ -200,7 +200,7 @@ LaCrosse_Parse($$)
} }
$temperature = int($temperature*10 + 0.5) / 10; $temperature = int($temperature*10 + 0.5) / 10;
$humidity = int($humidity + 0.5) / 10; $humidity = int($humidity*10 + 0.5) / 10;
readingsBulkUpdate($rhash, "temperature$channel", $temperature); readingsBulkUpdate($rhash, "temperature$channel", $temperature);
readingsBulkUpdate($rhash, "humidity$channel", $humidity) if( $humidity && $humidity <= 99 ); readingsBulkUpdate($rhash, "humidity$channel", $humidity) if( $humidity && $humidity <= 99 );