Update restore.sh

This commit is contained in:
LukeeGD 2025-02-16 17:20:52 +08:00
parent 20fd43cfdc
commit 3bbc7e709d

View File

@ -1565,7 +1565,7 @@ device_dfuhelper() {
fi
device_find_all $1
opt=$?
if [[ $opt == 1 ]]; then
if [[ $opt == 1 && $mode != "device_dfuhelper" ]]; then
log "Found device in DFU mode."
device_mode="DFU"
return
@ -1610,7 +1610,7 @@ device_dfuhelper() {
echo -n "$i "
device_find_all $1
opt=$?
if [[ $opt == 1 ]]; then
if [[ $opt == 1 && $mode != "device_dfuhelper" ]]; then
echo -e "\n$(log 'Found device in DFU mode.')"
device_mode="DFU"
return