diff options
author | howientc <howie@nextthing.co> | 2017-11-08 13:17:58 -0500 |
---|---|---|
committer | howientc <howie@nextthing.co> | 2017-11-08 13:17:58 -0500 |
commit | f79fe329d9299fdec17478844afe960acbcc8fad (patch) | |
tree | bacafcf9bed6bbbf0f56aac96b53bfef3bb8b0cf | |
parent | Export/unset of environment variables related to usb state (diff) | |
download | CHIP-tools-f79fe329d9299fdec17478844afe960acbcc8fad.tar.bz2 CHIP-tools-f79fe329d9299fdec17478844afe960acbcc8fad.zip |
Added check for DONT_WAIT_FOR_STATE
-rwxr-xr-x | common.sh | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -43,6 +43,8 @@ filesize() { #------------------------------------------------------------ wait_for_fastboot() { + if [[ -v DONT_WAIT_FOR_STATE ]]; then return 0; fi + echo -n "waiting for fastboot..."; export FLASH_WAITING_FOR_DEVICE=1 for ((i=$TIMEOUT; i>0; i--)) { @@ -62,6 +64,8 @@ wait_for_fastboot() { #------------------------------------------------------------ wait_for_fel() { + if [[ -v DONT_WAIT_FOR_STATE ]]; then return 0; fi + echo -n "waiting for fel..."; export FLASH_WAITING_FOR_DEVICE=1 for ((i=$TIMEOUT; i>0; i--)) { |