Closed GoogleCodeExporter closed 8 years ago
Marije provided the following patch:
diff --git a/XBee-2.0.0/xbee/base.py b/XBee-2.0.0/xbee/base.py
index 38327f0..b4a8734 100644
--- a/XBee-2.0.0/xbee/base.py
+++ b/XBee-2.0.0/xbee/base.py
@@ -126,10 +126,12 @@ class XBeeBase(threading.Thread):
continue
# Save all following bytes
- frame.fill(byte)
+ if len(byte) > 0:
+ frame.fill(byte)
while(frame.remaining_bytes() > 0):
newbyte = self.serial.read()
- frame.fill(newbyte)
+ if len(newbyte) > 0:
+ frame.fill(newbyte)
if self.verbose:
print "%x"%ord(newbyte)
Original comment by pmalms...@gmail.com
on 28 Oct 2011 at 2:03
This has been resolved as of revision a74b455d4aa0 and revision 8ee2a776d4e4.
Original comment by pmalms...@gmail.com
on 20 Dec 2011 at 12:17
Original issue reported on code.google.com by
pmalms...@gmail.com
on 28 Oct 2011 at 2:02