2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

98_DOIFtools.pm: fixed detailFn for DOIF if empty

git-svn-id: https://svn.fhem.de/fhem/trunk@14656 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Ellert 2017-07-06 13:07:10 +00:00
parent 12d6ddddde
commit 41d2f20c98

View File

@ -640,7 +640,7 @@ sub DOIFtools_Notify($$) {
CommandSave(undef,undef);
}
# Event monitor in DOIF FW_detailFn
if ($modules{DOIF}{LOADED} and $modules{DOIF}->{FW_detailFn} and $modules{DOIF}->{FW_detailFn} ne "DOIFtools_eM" and $sn eq "global" and $event =~ "^INITIALIZED\$" ) {
if ($modules{DOIF}{LOADED} and (!$modules{DOIF}->{FW_detailFn} or $modules{DOIF}->{FW_detailFn} and $modules{DOIF}->{FW_detailFn} ne "DOIFtools_eM") and $sn eq "global" and $event =~ "^INITIALIZED\$" ) {
readingsBeginUpdate($hash);
readingsBulkUpdate($hash,".DOIF_detailFn",$modules{DOIF}->{FW_detailFn});
$modules{DOIF}->{FW_detailFn} = "DOIFtools_eM";