2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-05-05 08:20:23 +00:00

Double notify fixed

git-svn-id: https://svn.fhem.de/fhem/trunk@1313 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2012-03-04 12:25:55 +00:00
parent 3e2ae6c7f9
commit 6b63299010
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);
}