mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-13 17:26:34 +00:00
Trying to fix problems when a device is set in a notify triggered by its own
change. git-svn-id: https://svn.fhem.de/fhem/trunk@3401 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
21dff334a4
commit
064f3e150c
@ -1191,7 +1191,8 @@ DoSet(@)
|
|||||||
return undef if($skipTrigger);
|
return undef if($skipTrigger);
|
||||||
|
|
||||||
# Backward compatibility. Use readingsUpdate in SetFn now
|
# Backward compatibility. Use readingsUpdate in SetFn now
|
||||||
if(!$hash->{".triggerUsed"}) {
|
# case: DoSet is called from a notify triggered by DoSet with same dev
|
||||||
|
if(defined($hash->{".triggerUsed"}) && $hash->{".triggerUsed"} == 0) {
|
||||||
shift @a;
|
shift @a;
|
||||||
# set arg if the module did not triggered events
|
# set arg if the module did not triggered events
|
||||||
my $arg = join(" ", @a) if(!$hash->{CHANGED} || !int(@{$hash->{CHANGED}}));
|
my $arg = join(" ", @a) if(!$hash->{CHANGED} || !int(@{$hash->{CHANGED}}));
|
||||||
@ -3082,7 +3083,7 @@ readingsBeginUpdate($)
|
|||||||
$hash->{".attreour"} = \@a;
|
$hash->{".attreour"} = \@a;
|
||||||
}
|
}
|
||||||
|
|
||||||
$hash->{CHANGED}= ();
|
$hash->{CHANGED}= () if(!defined($hash->{CHANGED}));
|
||||||
return $fmtDateTime;
|
return $fmtDateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user