summaryrefslogtreecommitdiffstats
path: root/keyboards/lets_split
diff options
context:
space:
mode:
authorDanny Nguyen <danny@80pct.com>2017-04-03 17:32:54 +0200
committerDanny Nguyen <danny@80pct.com>2017-04-03 17:32:54 +0200
commit344ebbac43ef510b29cdcdff2688186ee3ffead7 (patch)
tree1cd5477ba7c6dc23f82a043d365100f8c7460033 /keyboards/lets_split
parentda53f3a529e6e32473e67ae75021f28f9078d1e6 (diff)
downloadqmk_firmware-344ebbac43ef510b29cdcdff2688186ee3ffead7.tar.gz
qmk_firmware-344ebbac43ef510b29cdcdff2688186ee3ffead7.tar.xz
Revert removal of avrdude make option
Diffstat (limited to 'keyboards/lets_split')
-rw-r--r--keyboards/lets_split/rules.mk14
-rw-r--r--keyboards/lets_split/split_util.c2
2 files changed, 14 insertions, 2 deletions
diff --git a/keyboards/lets_split/rules.mk b/keyboards/lets_split/rules.mk
index ff159e0f0..79860ea35 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
diff --git a/keyboards/lets_split/split_util.c b/keyboards/lets_split/split_util.c
index 46586fbc0..39639c3b4 100644
--- a/keyboards/lets_split/split_util.c
+++ b/keyboards/lets_split/split_util.c
@@ -21,7 +21,7 @@ static void setup_handedness(void) {
#ifdef EE_HANDS
isLeftHand = eeprom_read_byte(EECONFIG_HANDEDNESS);
#else
- // I2c_MASTER_RIGHT ish deprecate use MASTER_RIGHT instead since this works for both serial and i2c:
+ // I2C_MASTER_RIGHT is deprecated, use MASTER_RIGHT instead, since this works for both serial and i2c
#if defined(I2C_MASTER_RIGHT) || defined(MASTER_RIGHT)
isLeftHand = !has_usb();
#else