change param burstAccess behavior

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4299 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2013-11-30 11:14:33 +00:00
parent 5770dafc8f
commit e431cf9a3e

View File

@ -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