mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-19 18:56:03 +00:00
change param burstAccess behavior
git-svn-id: https://svn.fhem.de/fhem/trunk@4299 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bef07e318c
commit
ec1fa27cf3
@ -493,6 +493,7 @@ sub CUL_HM_Attr(@) {#################################
|
|||||||
elsif($attrName eq "burstAccess"){
|
elsif($attrName eq "burstAccess"){
|
||||||
if ($cmd eq "set"){
|
if ($cmd eq "set"){
|
||||||
return "use burstAccess only for device" if (!$hash->{helper}{role}{dev});
|
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]/);
|
return "$attrVal not a valid option for burstAccess" if ($attrVal !~ m/^[01]/);
|
||||||
if ($attrVal =~ m/^0/){$hash->{protCondBurst} = "forced_off";}
|
if ($attrVal =~ m/^0/){$hash->{protCondBurst} = "forced_off";}
|
||||||
else {$hash->{protCondBurst} = "unknown";}
|
else {$hash->{protCondBurst} = "unknown";}
|
||||||
@ -3246,8 +3247,8 @@ sub CUL_HM_Set($@) {
|
|||||||
if($rxType & 0x03){#all/burst
|
if($rxType & 0x03){#all/burst
|
||||||
CUL_HM_ProcessCmdStack($devHash);
|
CUL_HM_ProcessCmdStack($devHash);
|
||||||
}
|
}
|
||||||
elsif(($rxType & 0x80) && #burstConditional - have a try
|
elsif(CUL_HM_getAttrInt($name,"burstAccess")&& #burstConditional - have a try
|
||||||
$devHash->{cmdStack} &&
|
$devHash->{cmdStack} &&
|
||||||
$devHash->{helper}{prt}{sProc} != 1 # not pocessing
|
$devHash->{helper}{prt}{sProc} != 1 # not pocessing
|
||||||
){
|
){
|
||||||
$hash->{helper}{prt}{wakeup}=1;# start auto-wakeup
|
$hash->{helper}{prt}{wakeup}=1;# start auto-wakeup
|
||||||
|
Loading…
x
Reference in New Issue
Block a user