2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 01:09:47 +00:00

correct hash comparison

git-svn-id: https://svn.fhem.de/fhem/trunk@2617 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2013-01-31 18:31:13 +00:00
parent f83035e9c2
commit 176ce08708

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);