2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-25 22:09:21 +00:00

10_CUL_HM:improve burst access multi message

git-svn-id: https://svn.fhem.de/fhem/trunk@8412 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2015-04-11 06:12:13 +00:00
parent ab3065b637
commit 5fa37cbb06

View File

@ -4881,9 +4881,10 @@ sub CUL_HM_Set($@) {#+++++++++++++++++ set command+++++++++++++++++++++++++++++
$devHash->{helper}{prt}{sProc} != 1 # not processing
){
if($rxType & 0x02){# handle burst Access devices - add burst Bit
my ($pre,$tp,$tail) = unpack 'A2A2A*',$devHash->{cmdStack}[0];
$devHash->{cmdStack}[0] = sprintf("%s%02X%s",$pre,(hex($tp)|0x10),$tail);
CUL_HM_ProcessCmdStack($devHash);
CUL_HM_SndCmd($devHash,"++B112$id$dst");
# my ($pre,$tp,$tail) = unpack 'A2A2A*',$devHash->{cmdStack}[0];
# $devHash->{cmdStack}[0] = sprintf("%s%02X%s",$pre,(hex($tp)|0x10),$tail);
# CUL_HM_ProcessCmdStack($devHash);
}
elsif (CUL_HM_getAttrInt($name,"burstAccess")){ #burstConditional - have a try
$hash->{helper}{prt}{brstWu}=1;# start auto-burstWakeup
@ -5547,7 +5548,7 @@ sub CUL_HM_SndCmd($$) {
}
$cmd =~ m/^(..)(.*)$/;
my ($mn, $cmd2) = ($1, $2);
my ($mn, $cmd2) = unpack 'A2A*',$cmd;
if($mn eq "++") {
$mn = $io->{HM_CMDNR} ? (($io->{HM_CMDNR} +1)&0xff) : 1;