Adjust timeout of FindDevice

This commit is contained in:
LukeZGD 2022-09-05 15:59:11 +08:00
parent d36cb213c8
commit 20b98ef828

View File

@ -14,7 +14,7 @@ FindDevice() {
elif [[ $1 == "Restore" ]]; then elif [[ $1 == "Restore" ]]; then
USB=1297 USB=1297
fi fi
[[ -n $2 ]] && Timeout=5 [[ -n $2 ]] && Timeout=10
Log "Finding device in $1 mode..." Log "Finding device in $1 mode..."
while (( i < Timeout )); do while (( i < Timeout )); do