diff options
author | Stephen Christie <undersampled@live.com> | 2016-08-02 22:51:30 -0400 |
---|---|---|
committer | Stephen Christie <undersampled@live.com> | 2016-08-02 22:51:30 -0400 |
commit | bf2b260429dbc015d49d005065a37441c8f15753 (patch) | |
tree | ff87f04b747ce54870e8fb2a56af205079f9415c /tmk_core/avr.mk | |
parent | 0acb394ac41f56895d4287d950a79bca5437a45c (diff) | |
parent | 79a9e04706919b4cc684f9ee9420ef38470bcd66 (diff) |
Merge branch 'master' of http://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 |