wellhub_reloaded/sender.sh
2024-05-13 11:43:31 -07:00

20 lines
269 B
Bash
Executable File

#!/bin/bash
# first device connected
idf.py -DROLE=SENDER build
ret_val=$?
if (($ret_val != 0)); then
exit
fi
if [$1 == '']; then
idf.py flash -p /dev/ttyUSB0
idf.py -p /dev/ttyUSB0 monitor -B 450000
else
idf.py flash -p $1
idf.py -p $1 monitor -B 450000
fi