diff options
author | Jason Janse van Rensburg <l33tjas.0n@gmail.com> | 2016-07-24 04:08:01 +0200 |
---|---|---|
committer | Jason Janse van Rensburg <l33tjas.0n@gmail.com> | 2016-07-24 04:08:01 +0200 |
commit | 62d4ce73ecd191e66934a1882dc63971bcf338cb (patch) | |
tree | ce711e757ab87d6d0b408d477b49e719b6d8f687 /tmk_core/avr.mk | |
parent | b0e9dbecee209a40ff1fc93ce4415d96cb0cdaba (diff) | |
parent | 8e1d96983aad19b3e4e72ece5db822e92d91342b (diff) |
Merged branch master into bone2planck
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 |