Python example fix
Had to unpack tuple for string.format
This commit is contained in:
@@ -18,7 +18,7 @@ def record(path, interval = 0.1, duration = 60):
|
||||
for i in range(0, count):
|
||||
try:
|
||||
posi = client.getPOSI()
|
||||
fd.write("{0}, {1}, {2}, {3}, {4}, {5}, {6}\n".format(posi))
|
||||
fd.write("{0}, {1}, {2}, {3}, {4}, {5}, {6}\n".format(*posi))
|
||||
except:
|
||||
print "Error reading position"
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user