diff options
author | luc wastiaux <luc.wastiaux@airpost.net> | 2017-02-13 07:44:28 +0800 |
---|---|---|
committer | luc wastiaux <luc.wastiaux@airpost.net> | 2017-02-13 07:44:28 +0800 |
commit | 352d79e1fbbd7eea65793abb261dd544fec7bb1c (patch) | |
tree | e006ee8098826054d93939b2a59521f6c032e10d /keyboards/lets_split/rules.mk | |
parent | 5f8535b356e66975e20f1a573ab104db75f8b33c (diff) | |
parent | 4505db5d0e0c2423645cc9117f29b942d4841c5b (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'keyboards/lets_split/rules.mk')
-rw-r--r-- | keyboards/lets_split/rules.mk | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/keyboards/lets_split/rules.mk b/keyboards/lets_split/rules.mk index 1aee5313c1..0efa785505 100644 --- a/keyboards/lets_split/rules.mk +++ b/keyboards/lets_split/rules.mk @@ -73,3 +73,15 @@ 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 now"; \ + while [[ -z $$USB ]]; do \ + sleep 1; \ + ls /dev/tty* > /tmp/2; \ + USB=`diff /tmp/1 /tmp/2 | grep -o '/dev/tty.*'`; \ + done; \ + avrdude -p $(MCU) -c avr109 -P $$USB -U flash:w:$(BUILD_DIR)/$(TARGET).hex + +.PHONY: avrdude |