Update build.sh dfu-util to wait for device if not present

This commit is contained in:
Aadi Desai 2023-06-04 12:01:56 +01:00
parent d784f6d251
commit 07edec0fb7
No known key found for this signature in database

View file

@ -20,7 +20,7 @@ read -p "Flash OrangeCrab? [y/N]" -n 1 -r FLASH_OC
if [[ $FLASH_OC =~ ^[Yy]$ ]]; then
echo # Move to next line
set +e
dfu-util -D gsd_orangecrab.dfu
dfu-util -w -D gsd_orangecrab.dfu
set -e
else echo "Skipping Reflash"
fi