98_fhemdebug.pm: fix forceEvents bug (Forum #123655)
git-svn-id: https://svn.fhem.de/fhem/trunk@25165 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -54,8 +54,9 @@ fhemdebug_Fn($$)
|
||||
$main_readingsEndUpdate = \&readingsEndUpdate;
|
||||
$main_setReadingsVal = \&setReadingsVal;
|
||||
*readingsEndUpdate = sub($$){
|
||||
$_[1]=1 if(AttrVal($_[0]->{NAME}, "forceEvents", 0));
|
||||
&{$main_readingsEndUpdate}(@_);
|
||||
my $dt = $_[1];
|
||||
$dt = 1 if(AttrVal($_[0]->{NAME}, "forceEvents", 0));
|
||||
&{$main_readingsEndUpdate}($_[0], $dt);
|
||||
};
|
||||
*setReadingsVal = sub($$$$) {
|
||||
DoTrigger($_[0]->{NAME}, "$_[1] $_[2]")
|
||||
|
||||
Reference in New Issue
Block a user