summaryrefslogtreecommitdiff
path: root/keyboards/lets_split/rules.mk
diff options
context:
space:
mode:
authormilestogo <milestogo@users.noreply.github.com>2017-02-09 23:28:15 -0800
committermilestogo <milestogo@users.noreply.github.com>2017-02-09 23:28:15 -0800
commit41c93575a838e9b201ca113165085f47198e109d (patch)
tree897558fe82aa473d9461ba350c939c75a3ac6b5f /keyboards/lets_split/rules.mk
parentb0dfb037dc0b8b20fd87b3c88449a2ce20ff80e1 (diff)
parent6c462e0c0155a892a6efd0881086f8a7032316d2 (diff)
Merge branch 'master' of https://github.com/jackhumbert/qmk_firmware
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 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