aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony LaTorre <devnull@localhost>2014-11-29 09:17:23 -0600
committerAnthony LaTorre <devnull@localhost>2014-11-29 09:17:23 -0600
commitaee3fc44045e9ae7c2fe73d80adddfb51fb83f0b (patch)
tree8e6548605508c49f91b671be91ff2cd822a26ce0
parentf94503b5112a29fc796f348bd08546974a717f56 (diff)
downloadlecrunch-aee3fc44045e9ae7c2fe73d80adddfb51fb83f0b.tar.gz
lecrunch-aee3fc44045e9ae7c2fe73d80adddfb51fb83f0b.tar.bz2
lecrunch-aee3fc44045e9ae7c2fe73d80adddfb51fb83f0b.zip
fix struct.unpack bug reported by mingi wuHEADmaster
-rw-r--r--lecroy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lecroy.py b/lecroy.py
index 22e4f13..36e405c 100644
--- a/lecroy.py
+++ b/lecroy.py
@@ -165,7 +165,7 @@ class LeCroyScope(sock.Socket):
# check endian
data.seek(startpos + 34)
- if struct.unpack('<'+Enum.packfmt, data.read(Enum.length)) == 0:
+ if struct.unpack('<'+Enum.packfmt, data.read(Enum.length))[0] == 0:
endian = '>'
wavedesc['little_endian'] = True
np.little_endian = True