2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

Fix of last bugfix (set + eventmap)

git-svn-id: https://svn.fhem.de/fhem/trunk@1370 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2012-03-20 09:39:08 +00:00
parent 2e3a4d92d9
commit 6a0368c577
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;