mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
98_fhemdebug.pm: fix forceEvents bug (Forum #123655)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@25165 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
5aa206878d
commit
5f5299833e
@ -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]")
|
||||
|
Loading…
x
Reference in New Issue
Block a user