Refactor pingpair_test to remove all serial io from within the irq handler, as necessitated by Arduino 1.0
This commit is contained in:
@@ -1,16 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Connect p6 to receiver, p4 to sender
|
||||
# Connect u0 to receiver, u0 to sender
|
||||
# WARNING: Test config 2 only works with PLUS units.
|
||||
|
||||
jam p4 p6 || exit 1
|
||||
./runtest.py /dev/tty.usbserial-A600eHIs 1 &
|
||||
./runtest.py /dev/tty.usbserial-A40081RP 1 || ( kill `jobs -p` && exit 1 )
|
||||
kill `jobs -p`
|
||||
./runtest.py /dev/tty.usbserial-A600eHIs 2 &
|
||||
./runtest.py /dev/tty.usbserial-A40081RP 2 || ( kill `jobs -p` && exit 1 )
|
||||
kill `jobs -p`
|
||||
./runtest.py /dev/tty.usbserial-A600eHIs 3 &
|
||||
./runtest.py /dev/tty.usbserial-A40081RP 3 || ( kill `jobs -p` && exit 1 )
|
||||
kill `jobs -p`
|
||||
exit 0
|
||||
jam u0 u1 && expect test.ex 1
|
||||
jam u0 u1 && expect test.ex 2
|
||||
jam u0 u1 && expect test.ex 3
|
||||
|
||||
Reference in New Issue
Block a user