run-both should target tbeams

This commit is contained in:
Kevin Hester
2021-04-05 16:27:44 +08:00
parent 7abc3534c4
commit 276526005b
2 changed files with 7 additions and 5 deletions

View File

@@ -1,11 +1,13 @@
set -e
pio run
TARG=tbeam
pio run -e $TARG
echo uploading to usb1
pio run --upload-port /dev/ttyUSB1 -t upload &
pio run --upload-port /dev/ttyUSB1 -t upload -e $TARG &
echo uploading to usb0
pio run --upload-port /dev/ttyUSB0 -t upload &
pio run --upload-port /dev/ttyUSB0 -t upload -e $TARG &
wait
wait