aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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