98_fhemdebug.pm: change trigger content for forceEvents (Forum #123655)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@25175 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2021-11-03 18:25:50 +00:00
parent fa9c5c0058
commit 0ead5d9d61

View File

@ -59,7 +59,7 @@ fhemdebug_Fn($$)
&{$main_readingsEndUpdate}($_[0], $dt);
};
*setReadingsVal = sub($$$$) {
DoTrigger($_[0]->{NAME}, "$_[1] $_[2]")
DoTrigger($_[0]->{NAME}, "$_[1]: $_[2]")
if($_[1] && $_[1] eq "IODev" &&
AttrVal($_[0]->{NAME}, "forceEvents", 0));
&{$main_setReadingsVal}(@_);