mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 13:24:56 +00:00
long buffer correct
git-svn-id: https://svn.fhem.de/fhem/trunk@1304 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
64ebe63c2c
commit
6fa3b9f280
@ -290,7 +290,7 @@ RFXCOM_Read($)
|
||||
#Log 1, "RFXCOM: RFXCOM_Read '$hexline'";
|
||||
|
||||
# first char as byte represents number of bits of the message
|
||||
my $bits = ord($rfxcom_data);
|
||||
my $bits = ord(substr($rfxcom_data,0,1));
|
||||
my $num_bytes = $bits >> 3; if (($bits & 0x7) != 0) { $num_bytes++; }
|
||||
|
||||
while(length($rfxcom_data) > $num_bytes) {
|
||||
@ -304,6 +304,8 @@ RFXCOM_Read($)
|
||||
#Log 1, "RFXCOM_Read rfxcom_data '$hexline'";
|
||||
#
|
||||
RFXCOM_Parse($hash, $hash, $name, $rmsg);
|
||||
$bits = ord(substr($rfxcom_data,0,1));
|
||||
$num_bytes = $bits >> 3; if (($bits & 0x7) != 0) { $num_bytes++; }
|
||||
}
|
||||
#Log 1, "RFXCOM_Read END";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user