From aaf3a81471b21882d30df324ad5dfaf10625a1ba Mon Sep 17 00:00:00 2001 From: David Lopez Date: Wed, 21 Jan 2015 15:51:29 -0700 Subject: [PATCH] Fixed a bug in UE9 streamData where an incorrect variable name was being used. --- ChangeLog.txt | 2 ++ src/ue9.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 002951a..dae1793 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -246,3 +246,5 @@ Version History - Added string descriptions for low-level error codes 112 to 116. - Fixed a bug in U6 where I2C responses with an odd number of bytes would return an extra byte at the end. + - Fixed a bug in UE9 streamData where an incorrect variable name was being + used. diff --git a/src/ue9.py b/src/ue9.py index 0d12088..5b419f1 100644 --- a/src/ue9.py +++ b/src/ue9.py @@ -1150,7 +1150,7 @@ def streamData(self, convert=True): else: #Return packets in multiples of 4 like over USB numPackets = (packetsInBuffer // 4) * 4 - result = retResult[:(numBytes * numPackets)] + result = resultBuffer[:(numBytes * numPackets)] firstPacket = ord(result[10]) #Adjust buffered data