diff --git a/bin/device-install.sh b/bin/device-install.sh index 6198ce969..f3227adda 100755 --- a/bin/device-install.sh +++ b/bin/device-install.sh @@ -112,7 +112,7 @@ while [ $# -gt 0 ]; do shift # Move to the next argument done -if [[ $WEB_APP == true ]]; then +if [[ $CHANGE_MODE == true ]]; then $ESPTOOL_CMD --baud 1200 --after no_reset read_flash_status exit 0 fi diff --git a/bin/device-update.sh b/bin/device-update.sh index a62e9f468..c32b953e6 100755 --- a/bin/device-update.sh +++ b/bin/device-update.sh @@ -55,7 +55,7 @@ while getopts ":hp:P:f:" opt; do done shift "$((OPTIND-1))" -if [[ $WEB_APP == true ]]; then +if [[ $CHANGE_MODE == true ]]; then $ESPTOOL_CMD --baud 1200 --after no_reset read_flash_status exit 0 fi