mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
FBAHA: max msg length set to 20k
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4183 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c86f4c7f01
commit
3769d30a25
@ -263,7 +263,7 @@ FBAHA_Read($@)
|
|||||||
my $msg;
|
my $msg;
|
||||||
while(length($data) >= 16) {
|
while(length($data) >= 16) {
|
||||||
my $len = hex(substr($data, 4,4))*2;
|
my $len = hex(substr($data, 4,4))*2;
|
||||||
if($len < 16 || $len > 10240) { # Out of Sync
|
if($len < 16 || $len > 20480) { # Out of Sync
|
||||||
Log3 $name, 1, "FBAHA: resetting buffer as we are out of sync ($len)";
|
Log3 $name, 1, "FBAHA: resetting buffer as we are out of sync ($len)";
|
||||||
$hash->{PARTIAL} = "";
|
$hash->{PARTIAL} = "";
|
||||||
return "";
|
return "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user