From ec1fa27cf378c48423a423c30bd3306c91069525 Mon Sep 17 00:00:00 2001 From: martinp876 <> Date: Sat, 30 Nov 2013 11:14:33 +0000 Subject: [PATCH] change param burstAccess behavior git-svn-id: https://svn.fhem.de/fhem/trunk@4299 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_CUL_HM.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/10_CUL_HM.pm b/fhem/FHEM/10_CUL_HM.pm index ca6ec5940..fa6c1ae3e 100755 --- a/fhem/FHEM/10_CUL_HM.pm +++ b/fhem/FHEM/10_CUL_HM.pm @@ -493,6 +493,7 @@ sub CUL_HM_Attr(@) {################################# elsif($attrName eq "burstAccess"){ if ($cmd eq "set"){ return "use burstAccess only for device" if (!$hash->{helper}{role}{dev}); + return $name." not a conditional burst model" if (CUL_HM_getRxType($hash) & 0x80); return "$attrVal not a valid option for burstAccess" if ($attrVal !~ m/^[01]/); if ($attrVal =~ m/^0/){$hash->{protCondBurst} = "forced_off";} else {$hash->{protCondBurst} = "unknown";} @@ -3246,8 +3247,8 @@ sub CUL_HM_Set($@) { if($rxType & 0x03){#all/burst CUL_HM_ProcessCmdStack($devHash); } - elsif(($rxType & 0x80) && #burstConditional - have a try - $devHash->{cmdStack} && + elsif(CUL_HM_getAttrInt($name,"burstAccess")&& #burstConditional - have a try + $devHash->{cmdStack} && $devHash->{helper}{prt}{sProc} != 1 # not pocessing ){ $hash->{helper}{prt}{wakeup}=1;# start auto-wakeup