forked from Michel2/pytimex
Adapt test to new blaster code
This commit is contained in:
+1
-6
@@ -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!")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user