2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-06 12:18:46 +00:00

CUL_HM:setzen von peerNeedsBurst

git-svn-id: https://svn.fhem.de/fhem/trunk@11905 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2016-08-06 12:10:09 +00:00
parent 4b52676c12
commit ca3a2a476f
2 changed files with 4 additions and 4 deletions

View File

@ -1226,7 +1226,7 @@ sub HMUARTLGW_Parse($$$$)
my ($type, $status, $info, $rssi, $mNr, $flags, $cmd, $src, $dst, $payload) = ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10);
Log3($hash, HMUARTLGW_getVerbLvl($hash, $src, $dst, 5),
"HMUARTLGW ${name} recv: 01 ${type} ${status} ${info} ${rssi} msg: ${mNr} ${flags} ${cmd} ${src} ${dst} ${payload}");
"HMUARTLGW ${name} recv: 01 ${type} ${status} ${info} ${rssi} msg:${mNr} ${flags}${cmd} ${src} ${dst} ${payload}");
return if (!$hash->{Helper}{Initialized});
@ -1922,7 +1922,7 @@ sub HMUARTLGW_send($$$)
}
if ($m =~ m/^(..)(..)(..)(......)(......)(.*)$/) {
$log .= "msg: ${1} ${2} ${3} ${4} ${5} ${6}";
$log .= " msg:${1} ${2}${3} ${4} ${5} ${6}";
} else {
$log .= $m;
}

View File

@ -2186,7 +2186,7 @@ sub CUL_HM_Parse($$) {#########################################################
my $vs = $val == 0 ? "off" : "on";
if ($chn == 4){
my %lvlSet = ("00"=>"disarmed","01"=>"armExtSens","02"=>"armAll","03"=>"armBlocked");
$vs = $lvlSet{$val};
$vs = defined $lvlSet{$val}?$lvlSet{$val}:$val;
}
push @evtEt,[$mh{cHash},1,"level:$val"];
push @evtEt,[$mh{cHash},1,"pct:$val"]; # duplicate to level - necessary for "slider"
@ -4332,7 +4332,7 @@ sub CUL_HM_Set($@) {#+++++++++++++++++ set command+++++++++++++++++++++++++++++
$peerId = CUL_HM_peerChId($peerChnIn,$dst);
($peerId,$peerChn) = unpack 'A6A2',$peerId.'01';
if ($list == 4 &&
AttrVal($name,"peerIDs",undef)){##########################
!AttrVal($name,"peerIDs",undef)){####check this code#################
$peerChn = "00";
}
return "Peer not valid" if (length ($peerId) < 6);