diff options
author | Xyverz <xyverz@gmail.com> | 2017-04-06 22:07:34 -0700 |
---|---|---|
committer | Xyverz <xyverz@gmail.com> | 2017-04-06 22:07:34 -0700 |
commit | 303bc6999efc07f38a50c3cdc06503e6fce5fa6a (patch) | |
tree | 42f46f79866f9e64254148cca77c20562e52c2f6 /keyboards/lets_split/rules.mk | |
parent | 8813365ec5c091c0185563943bbf73ec53d846e0 (diff) | |
parent | 154305ce1be16b2c8abce5e5d4dee421f295d6b3 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'keyboards/lets_split/rules.mk')
-rw-r--r-- | keyboards/lets_split/rules.mk | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/keyboards/lets_split/rules.mk b/keyboards/lets_split/rules.mk index ff159e0f06..79860ea35d 100644 --- a/keyboards/lets_split/rules.mk +++ b/keyboards/lets_split/rules.mk @@ -1,7 +1,7 @@ SRC += matrix.c \ i2c.c \ split_util.c \ - serial.c\ + serial.c \ ssd1306.c # MCU name @@ -74,3 +74,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 |