Double notify fixed

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@1313 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2012-03-04 12:25:55 +00:00
parent ed9c7d07e1
commit edbf99eeb2
2 changed files with 4 additions and 1 deletions

View File

@@ -249,6 +249,8 @@ FS20_Set($@)
$lh->{STATE} = $v;
$lh->{READINGS}{state}{TIME} = $tn;
$lh->{READINGS}{state}{VAL} = $v;
my $lhname = $lh->{NAME};
DoTrigger($lhname, undef) if($name ne $lhname);
}
return $ret;
}

View File

@@ -1139,7 +1139,8 @@ DoSet(@)
return $ret if($ret);
shift @a;
return DoTrigger($dev, join(" ", @a));
my $arg = $defs{$dev}{CHANGED} ? undef : join(" ", @a);
return DoTrigger($dev, $arg);
}