From 6324812b41e998b592a89937734bfb793cbff69b Mon Sep 17 00:00:00 2001 From: LukeeGD <26163116+LukeZGD@users.noreply.github.com> Date: Sun, 16 Feb 2025 17:42:19 +0800 Subject: [PATCH] oops --- restore.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restore.sh b/restore.sh index 86d3f50..c08ba06 100755 --- a/restore.sh +++ b/restore.sh @@ -1597,7 +1597,7 @@ device_dfuhelper() { echo -n "$sec " 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