correct RSSI calc if no value present

git-svn-id: https://svn.fhem.de/fhem/trunk@3451 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876
2013-07-19 05:36:37 +00:00
parent 5fbb235c68
commit 45e9da9e3b

View File

@@ -3926,6 +3926,7 @@ sub CUL_HM_noDupInString($) {#return string with no duplicates, comma separated
}
sub CUL_HM_storeRssi(@){
my ($name,$peerName,$val) = @_;
return if (!$val);
$defs{$name}{helper}{rssi}{$peerName}{lst} = $val;
my $rssiP = $defs{$name}{helper}{rssi}{$peerName};
$rssiP->{min} = $val if (!$rssiP->{min} || $rssiP->{min} > $val);