From ee61b380266b76c6c23481cbb990c134c95c0f82 Mon Sep 17 00:00:00 2001 From: schneemaier Date: Wed, 5 Sep 2018 11:22:25 +0200 Subject: [PATCH] Update flash.sh The original code was not working if port and baud was not exported as separate environmentak varaibles. --- rel-tpl/flash.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rel-tpl/flash.sh b/rel-tpl/flash.sh index 4a92a28..60531f1 100644 --- a/rel-tpl/flash.sh +++ b/rel-tpl/flash.sh @@ -18,8 +18,8 @@ if [ -z ${ESPTOOL} ]; then fi fi -[ -z ESPPORT ] && ESPPORT=/dev/ttyUSB0 -[ -z ESPBAUD ] && ESPBAUD=460800 +[ -z ${ESPPORT} ] && ESPPORT=/dev/ttyUSB0 +[ -z ${ESPBAUD} ] && ESPBAUD=460800 set -x ${ESPTOOL} --port ${ESPPORT} --baud ${ESPBAUD} \