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:
wherzig
2010-08-16 19:59:54 +00:00
parent 9b04410c16
commit f6adb011ec
2 changed files with 6 additions and 6 deletions

View File

@@ -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