Adapt test to new blaster code

This commit is contained in:
Simon Larsson
2020-07-05 09:15:53 +02:00
parent 081b4d73a7
commit 809e0154e2
+1 -6
View File
@@ -40,7 +40,7 @@ print(listhex(data))
print("")
# Initialize blaster
b = pytimex.Blaster("/dev/ttyACM0", syncbuflen=16)
b = pytimex.Blaster("/dev/ttyACM0")
if not b.identify():
print("Could not verify adapter :(")
@@ -55,10 +55,5 @@ b.send_sync()
for databyte in data:
b.blast(databyte)
print("Synchronizing...")
# Flush and wait for all bytes to sync
b.flush()
print("Done!")