Fix of last bugfix (set + eventmap)

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@1370 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2012-03-20 09:39:08 +00:00
parent 36d7c261e7
commit 2064a0b01e
2 changed files with 5 additions and 2 deletions

View File

@@ -250,7 +250,10 @@ FS20_Set($@)
$lh->{READINGS}{state}{TIME} = $tn;
$lh->{READINGS}{state}{VAL} = $v;
my $lhname = $lh->{NAME};
DoTrigger($lhname, undef) if($name ne $lhname);
if($name ne $lhname) {
Log 1, "Secondary trigger: $lhname / $name";
DoTrigger($lhname, undef)
}
}
return $ret;
}