Fixed bug in that format of the Python client's DATA command.

This commit is contained in:
Jason Watkins
2015-05-06 10:13:02 -07:00
parent 7d7e0d01b2
commit e3e9c3c55c

View File

@@ -124,7 +124,7 @@ class XPlaneConnect(object):
if len(data) > 134: if len(data) > 134:
raise ValueError("Too many rows in data.") raise ValueError("Too many rows in data.")
buffer = struct.pack("<4sxB", "DATA", len(data)) buffer = struct.pack("<4sx", "DATA")
for row in data: for row in data:
if len(row) != 9: if len(row) != 9:
raise ValueError("Row does not contain exactly 9 values. <" + str(row) + ">") raise ValueError("Row does not contain exactly 9 values. <" + str(row) + ">")