Merge pull request #290 from jwakely/missing-bootloader

Check for missing bootloader port
pull/295/head
Jesse Vincent 7 years ago committed by GitHub
commit f24e97349e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -79,6 +79,10 @@ flash () {
}
flash_over_usb () {
if [ -z "${DEVICE_PORT_BOOTLOADER}" ]; then
echo 'DEVICE_PORT_BOOTLOADER is empty (did you hold "Prog" to enable bootloader mode?)' >&2
return 1
fi
sleep 1s
${AVRDUDE} -q -q -C ${AVRDUDE_CONF} -p${MCU} -cavr109 -D -P ${DEVICE_PORT_BOOTLOADER} -b57600 "-Uflash:w:${HEX_FILE_PATH}:i"
}

Loading…
Cancel
Save