Fix of last bugfix (set + eventmap)

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@1370 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2012-03-20 09:39:08 +00:00
parent e336c7523a
commit 447776b831
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;
}

View File

@@ -2598,7 +2598,7 @@ ReplaceEventMap($$$)
if($changed) {
my @arr = split(" ",$nstr);
push @arr, $dname;
unshift @arr, $dname;
return @arr;
} else {
unshift @{$str}, $dname;