aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/lets_split/rules.mk
diff options
context:
space:
mode:
authorGravatar Xyverz <xyverz@gmail.com>2017-02-10 23:34:27 -0800
committerGravatar Xyverz <xyverz@gmail.com>2017-02-10 23:34:27 -0800
commit902d5077cd54f3a964e3276d7858212d975818ec (patch)
treecddf5a379614f421908bbe57ae5d396cc1e2ed37 /keyboards/lets_split/rules.mk
parent4d7105c2cf47c7604b54cdf488b4eb9d08c1f1cf (diff)
parent835556da9111d91b71c545d6a273e843f07631ae (diff)
downloadqmk_firmware-902d5077cd54f3a964e3276d7858212d975818ec.tar.gz
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'keyboards/lets_split/rules.mk')
-rw-r--r--keyboards/lets_split/rules.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/keyboards/lets_split/rules.mk b/keyboards/lets_split/rules.mk
index 1aee5313c..0efa78550 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