Update flash.sh

The original code was not working if port and baud was not exported as separate environmentak varaibles.
This commit is contained in:
schneemaier
2018-09-05 11:22:25 +02:00
committed by GitHub
parent 7e4d25272a
commit ee61b38026
+2 -2
View File
@@ -18,8 +18,8 @@ if [ -z ${ESPTOOL} ]; then
fi fi
fi fi
[ -z ESPPORT ] && ESPPORT=/dev/ttyUSB0 [ -z ${ESPPORT} ] && ESPPORT=/dev/ttyUSB0
[ -z ESPBAUD ] && ESPBAUD=460800 [ -z ${ESPBAUD} ] && ESPBAUD=460800
set -x set -x
${ESPTOOL} --port ${ESPPORT} --baud ${ESPBAUD} \ ${ESPTOOL} --port ${ESPPORT} --baud ${ESPBAUD} \