From e3e9c3c55c007da99368e5dfba3a22f7f5315fcd Mon Sep 17 00:00:00 2001 From: Jason Watkins Date: Wed, 6 May 2015 10:13:02 -0700 Subject: [PATCH] Fixed bug in that format of the Python client's DATA command. --- Python/src/xpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/src/xpc.py b/Python/src/xpc.py index cf7d5e0..13d3bbd 100644 --- a/Python/src/xpc.py +++ b/Python/src/xpc.py @@ -124,7 +124,7 @@ class XPlaneConnect(object): if len(data) > 134: raise ValueError("Too many rows in data.") - buffer = struct.pack("<4sxB", "DATA", len(data)) + buffer = struct.pack("<4sx", "DATA") for row in data: if len(row) != 9: raise ValueError("Row does not contain exactly 9 values. <" + str(row) + ">")