From c6518f1fa03f737c34088809f9148dce47250cae Mon Sep 17 00:00:00 2001 From: justme1968 Date: Wed, 13 Nov 2013 15:29:18 +0000 Subject: [PATCH] allow humidity 99 git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@4213 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/36_LaCrosse.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/36_LaCrosse.pm b/fhem/FHEM/36_LaCrosse.pm index c44826a97..4e8f1818d 100644 --- a/fhem/FHEM/36_LaCrosse.pm +++ b/fhem/FHEM/36_LaCrosse.pm @@ -154,10 +154,10 @@ LaCrosse_Parse($$) && abs($rhash->{"previousT$channel"} - $temperature) <= AttrVal( $rname, "filterThreshold", 10 ) ) { readingsBeginUpdate($rhash); readingsBulkUpdate($rhash, "temperature$channel", $temperature); - readingsBulkUpdate($rhash, "humidity$channel", $humidity) if( $humidity && $humidity != 99 ); + readingsBulkUpdate($rhash, "humidity$channel", $humidity) if( $humidity && $humidity <= 99 ); if( !$channel ) { my $state = "T: $temperature"; - $state .= " H: $humidity" if( $humidity && $humidity != 99 ); + $state .= " H: $humidity" if( $humidity && $humidity <= 99 ); readingsBulkUpdate($rhash, "state", $state) if( Value($rname) ne $state ); } readingsBulkUpdate($rhash, "battery$channel", $battery_low?"low":"ok");