mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
Overload detection handling
git-svn-id: https://svn.fhem.de/fhem/trunk@6471 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6977e0ab51
commit
322deddd8e
@ -561,7 +561,6 @@ sub HMLAN_Parse($$) {##########################################################
|
|||||||
|
|
||||||
if ($letter =~ m/^[ER]/){#@mFld=($src, $status, $msec, $d2, $rssi, $msg)
|
if ($letter =~ m/^[ER]/){#@mFld=($src, $status, $msec, $d2, $rssi, $msg)
|
||||||
# max speed for devices is 100ms after receive - example:TC
|
# max speed for devices is 100ms after receive - example:TC
|
||||||
return if($mFld[5] =~ m/99.112999999000000/);#ignore overload test
|
|
||||||
my ($mNo,$flg,$type,$src,$dst,$p) = unpack('A2A2A2A6A6A*',$mFld[5]);
|
my ($mNo,$flg,$type,$src,$dst,$p) = unpack('A2A2A2A6A6A*',$mFld[5]);
|
||||||
my $mLen = length($mFld[5])/2;
|
my $mLen = length($mFld[5])/2;
|
||||||
my $CULinfo = "";
|
my $CULinfo = "";
|
||||||
@ -704,7 +703,8 @@ sub HMLAN_Parse($$) {##########################################################
|
|||||||
my $dmsg = sprintf("A%02X%s:$CULinfo:$rssi:$name",
|
my $dmsg = sprintf("A%02X%s:$CULinfo:$rssi:$name",
|
||||||
$mLen, uc($mFld[5]));
|
$mLen, uc($mFld[5]));
|
||||||
my %addvals = (RAWMSG => $rmsg, RSSI => hex($mFld[4])-65536);
|
my %addvals = (RAWMSG => $rmsg, RSSI => hex($mFld[4])-65536);
|
||||||
Dispatch($hash, $dmsg, \%addvals);
|
|
||||||
|
Dispatch($hash, $dmsg, \%addvals) if($mFld[5] !~ m/99.112999999000000/);#ignore overload test
|
||||||
}
|
}
|
||||||
elsif($mFld[0] eq 'HHM-LAN-IF'){#HMLAN version info
|
elsif($mFld[0] eq 'HHM-LAN-IF'){#HMLAN version info
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user