correct num_bytes after adding PCR800
git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@704 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -264,7 +264,7 @@ RFXCOM_Read($)
|
||||
|
||||
# first char as byte represents number of bits of the message
|
||||
my $bits = ord($rfxcom_data);
|
||||
my $num_bytes = $bits >> 3;
|
||||
my $num_bytes = $bits >> 3; if (($bits & 0x7) != 0) { $num_bytes++; }
|
||||
|
||||
while(length($rfxcom_data) > $num_bytes) {
|
||||
# the buffer contains at least the number of bytes we need
|
||||
|
||||
Reference in New Issue
Block a user