correct hash comparison

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@2617 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876
2013-01-31 18:31:13 +00:00
parent 75d8bb1f5d
commit d411755874

View File

@@ -919,7 +919,7 @@ CUL_HM_Parse($$)
}
elsif ($msgType eq "41"){ #Alarm detected
my ($No,$state) = (substr($p,2,2),substr($p,4,2));
if($dhash && $dhash ne $sHash){ # update source (ID is reported in $dst...)
if($dhash && $dname ne $name){ # update source (ID is reported in $dst...)
if (!$dhash->{helper}{alarmNo} || $dhash->{helper}{alarmNo} ne $No){
$dhash->{helper}{alarmNo} = $No;
readingsSingleUpdate($dhash,'state',(($state eq "01")?"off":"smoke-Alarm"),1);