2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

CUL_HM:async output correction

git-svn-id: https://svn.fhem.de/fhem/trunk@10013 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2015-11-26 19:29:58 +00:00
parent 862b2ba5c0
commit 25fbf194a0
2 changed files with 37 additions and 25 deletions

View File

@ -251,6 +251,7 @@ sub HMLAN_Attr(@) {############################################################
elsif($aName eq "logIDs"){
if ($cmd eq "set"){
if ($init_done){
if ($aVal){
my @ids = split",",$aVal;
my @idName;
if (grep /sys/,@ids){
@ -274,6 +275,11 @@ sub HMLAN_Attr(@) {############################################################
$attr{$name}{$aName} = join(",",@idName);
@{$defs{$name}{helper}{log}{ids}}=grep !/^(sys|all)$/,@ids;
}
else{
$attr{$name}{$aName} = "";
@{$defs{$name}{helper}{log}{ids}}=();
}
}
else{
$defs{$name}{helper}{attrPend} = 1;
return;

View File

@ -1131,6 +1131,7 @@ sub HMinfo_GetFn($@) {#########################################################
$ret = $cmd." done:" .HMinfo_peerCheck(@entities);
}
elsif($cmd eq "configCheck"){##check peers and register----------------------
if ($hash->{CL}){
my $id = ++$hash->{nb}{cnt};
my $bl = BlockingCall("HMinfo_configCheck", join(",",("$name;$id;$hash->{CL}{NAME}",$opt,$filter)),
"HMinfo_bpPost", 30,
@ -1138,6 +1139,11 @@ sub HMinfo_GetFn($@) {#########################################################
$hash->{nb}{$id}{$_} = $bl->{$_} foreach (keys %{$bl});
$ret = "";
}
else{
$ret = HMinfo_configCheck (join(",",("$name;;",$opt,$filter)));
$ret =~s/-ret-/\n/g;
}
}
elsif($cmd eq "templateChk"){##template: see if it applies ------------------
my $id = ++$hash->{nb}{cnt};
my $bl = BlockingCall("HMinfo_templateChk_Get", join(",",("$name;$id;$hash->{CL}{NAME}",$opt,$filter,@a)),