diff options
author | Jack Humbert <jack.humb@gmail.com> | 2017-02-06 19:33:07 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-06 19:33:07 -0500 |
commit | b5159c964a6cd2997bf49951e0e99ed4d3d38f1e (patch) | |
tree | 81b7e6794ff14617b4d0e453f47ee68e3da05d1d /keyboards/lets_split/rules.mk | |
parent | 4348fb54d6eb80e8d82c0724be647631bdd524d3 (diff) | |
parent | 890ecf6a2ae1e782cdcd7750572c339c1ad7bb3a (diff) | |
download | firmware-b5159c964a6cd2997bf49951e0e99ed4d3d38f1e.tar.gz firmware-b5159c964a6cd2997bf49951e0e99ed4d3d38f1e.tar.bz2 firmware-b5159c964a6cd2997bf49951e0e99ed4d3d38f1e.zip |
Merge pull request #1036 from nicinabox/lets-split-improvements
Lets Split flashing improvements
Diffstat (limited to 'keyboards/lets_split/rules.mk')
-rw-r--r-- | keyboards/lets_split/rules.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/keyboards/lets_split/rules.mk b/keyboards/lets_split/rules.mk index 1aee5313c..0dc549130 100644 --- a/keyboards/lets_split/rules.mk +++ b/keyboards/lets_split/rules.mk @@ -73,3 +73,13 @@ USE_I2C ?= yes SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend CUSTOM_MATRIX = yes + +avrdude: build + ls /dev/tty* > /tmp/1; \ + echo "Reset your Pro Micro then hit any key to continue..."; \ + read -n 1 -s; \ + ls /dev/tty* > /tmp/2; \ + USB=`diff /tmp/1 /tmp/2 | grep '>' | sed -e 's/> //'`; \ + avrdude -p $(MCU) -c avr109 -P $$USB -U flash:w:$(BUILD_DIR)/$(TARGET).hex + +.PHONY: avrdude |