diff options
author | Christopher Browne <cbbrowne@ca.afilias.info> | 2016-07-25 12:55:46 -0400 |
---|---|---|
committer | Christopher Browne <cbbrowne@ca.afilias.info> | 2016-07-25 12:55:46 -0400 |
commit | 17a7570e081a92e9a975ed86f94b9c0bbfc158f4 (patch) | |
tree | 51a8dd3596314dec1d87c9f35b3fa9069166960d /tmk_core/avr.mk | |
parent | 82f768e6c04c57fa44d6020e3d57a6b3de211ddc (diff) | |
parent | f9aadd17e8fce17fe1e135cf8022e71a35ae5adf (diff) |
Merge branch 'master' of https://github.com/jackhumbert/qmk_firmware
Diffstat (limited to 'tmk_core/avr.mk')
-rw-r--r-- | tmk_core/avr.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tmk_core/avr.mk b/tmk_core/avr.mk index 3bf2b34f88..6c03e1650e 100644 --- a/tmk_core/avr.mk +++ b/tmk_core/avr.mk @@ -107,6 +107,10 @@ flip: $(BUILD_DIR)/$(TARGET).hex batchisp -hardware usb -device $(MCU) -operation start reset 0 dfu: $(BUILD_DIR)/$(TARGET).hex sizeafter + until dfu-programmer $(MCU) get bootloader-version; do\ + echo "Error: Bootloader not found. Trying again in 5s." ;\ + sleep 5 ;\ + done ifneq (, $(findstring 0.7, $(shell dfu-programmer --version 2>&1))) dfu-programmer $(MCU) erase --force else |