diff options
author | Toni <jeder@mail1a.de> | 2016-07-25 12:49:38 +0200 |
---|---|---|
committer | Toni <jeder@mail1a.de> | 2016-07-25 12:49:38 +0200 |
commit | 5e2e8c89e86fbabb65737789ff0545e3e8ac1610 (patch) | |
tree | ce13a00ccc10fdc147a0e8caa0c2a1bbabfda357 /tmk_core/avr.mk | |
parent | 5631f1436c356fb9e09138f186981dc9b6cb43a2 (diff) | |
parent | 8b94e26d7c3b30cc57d710a11e5651d15e8e3b20 (diff) | |
download | qmk_firmware-5e2e8c89e86fbabb65737789ff0545e3e8ac1610.tar.gz |
Merge remote-tracking branch 'origin/master' into iso_split_rshift
whatever
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 3bf2b34f8..6c03e1650 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 |