diff options
author | Jonathan Lucas <CommandLineDesign@gmail.com> | 2016-07-23 18:44:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-23 18:44:01 -0700 |
commit | 4059a16118e3abbc9eab2241693c60a1f19811b5 (patch) | |
tree | ce711e757ab87d6d0b408d477b49e719b6d8f687 /tmk_core/avr.mk | |
parent | 9ecf9073b96799e52a1f1c0d35b57177382902ce (diff) | |
parent | 8e1d96983aad19b3e4e72ece5db822e92d91342b (diff) |
Merge pull request #1 from jackhumbert/master
Update from parent
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 |