2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-05-05 08:20:23 +00:00

36_LaCrosse.pm: update battery state only if the received temperature is valid

git-svn-id: https://svn.fhem.de/fhem/trunk@9630 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
hcs-svn 2015-10-24 19:14:10 +00:00
parent fe2b3446a7
commit 9bbac69071

View File

@ -465,7 +465,6 @@ sub LaCrosse_Parse($$) {
else { else {
$rhash->{"bufferedT"} = undef; $rhash->{"bufferedT"} = undef;
$rhash->{"bufferedH"} = undef; $rhash->{"bufferedH"} = undef;
readingsSingleUpdate($rhash, "battery$channel", $battery_low ? "low" : "ok", 1);
} }
$rhash->{"previousT$channel"} = int($previousT*10 + 0.5) / 10; $rhash->{"previousT$channel"} = int($previousT*10 + 0.5) / 10;