pingpair_blocking test now uses expect and runs on linux

This commit is contained in:
maniacbug
2012-01-15 22:07:13 -08:00
parent c2e9564678
commit dec61af85f
6 changed files with 175 additions and 148 deletions

View File

@@ -1,10 +1,10 @@
#!/opt/local/bin/python
#!/usr/bin/python
import sys,serial
def read_until(token):
while 1:
line = ser.readline(None,"\r")
line = ser.readline(None)
sys.stdout.write(line)
if (line.startswith(token)):