Merge branch 'master' into arduino-mega328
This commit is contained in:
commit
c6725d88a7
|
@ -20,9 +20,11 @@ def main():
|
|||
sys.exit(-1)
|
||||
|
||||
ser = serial.Serial(sys.argv[1], 9600, timeout=0.40)
|
||||
ser.reset_input_buffer()
|
||||
|
||||
|
||||
data = ""
|
||||
while True:
|
||||
data = ser.read(19)
|
||||
while data == "":
|
||||
data = ser.read(19)
|
||||
|
||||
|
@ -33,6 +35,7 @@ def main():
|
|||
|
||||
header_ok = data.startswith(chr(0xAA) + chr(0xFE))
|
||||
|
||||
|
||||
line = ""
|
||||
if header_ok:
|
||||
line += "Header Ok "
|
||||
|
|
Loading…
Reference in New Issue