2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-04 11:26:55 +00:00

correct clear filter

git-svn-id: https://svn.fhem.de/fhem/trunk@6233 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2014-07-11 05:59:07 +00:00
parent 9878a96e54
commit 091c4278cf

View File

@ -1094,14 +1094,14 @@ sub HMinfo_SetFn($@) {#########################################################
delete $modules{CUL_HM}{stat}{r}{$_};
delete $modules{CUL_HM}{stat}{s}{$_};
}
return;
}
if ($type ne "msgStat"){
return "unknown parameter - use Protocol, readings, msgStat, register, rssi or all"
if ($type !~ m/^(Protocol|readings|register|rssi|all)$/);
$opt .= "d" if ($type !~ m/(readings|register)/);# readings apply to all, others device only
$opt .= "d" if ($type =~ m/(Protocol|rssi)/);# readings apply to all, others device only
my @entities;
$type = "msgEvents" if ($type eq "Protocol");# translate parameter
Log 1,"General filter:$opt,$filter";
foreach my $dName (HMinfo_getEntities($opt,$filter)){
push @entities,$dName;
CUL_HM_Set($defs{$dName},$dName,"clear",$type);