Skip to content
Snippets Groups Projects
Commit 01973417 authored by Michael DM Dryden's avatar Michael DM Dryden
Browse files

Improve reliability of version detection.

parent e0cd2cf9
Branches
Tags
No related merge requests found
......@@ -45,12 +45,12 @@ def version_check(ser_port):
"""
ser = delayedSerial(ser_port, 1024000, timeout=1)
ser.write("ck")
ser.flushInput()
ser.write('!')
while not ser.read().startswith("C"):
pass
ser.write('!')
ser.write('V')
for line in ser:
if line.startswith('V'):
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment