Skip to content

Commit

Permalink
Set device_mode to DFU
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeZGD committed Sep 3, 2023
1 parent 0adf014 commit feb987d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,7 @@ device_dfuhelper() {
opt=$?
if [[ $opt == 1 ]]; then
log "Found device in DFU mode."
device_mode="DFU"
return
fi
print "* Get ready..."
Expand All @@ -943,6 +944,7 @@ device_dfuhelper() {
opt=$?
if [[ $opt == 1 ]]; then
echo -e "\n$(log 'Found device in DFU mode.')"
device_mode="DFU"
return
fi
sleep 1
Expand All @@ -954,6 +956,7 @@ device_dfuhelper() {
opt=$?
if [[ $opt == 1 ]]; then
echo -e "\n$(log 'Found device in DFU mode.')"
device_mode="DFU"
return
fi
sleep 1
Expand Down

0 comments on commit feb987d

Please sign in to comment.