aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tmk_core/avr.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/tmk_core/avr.mk b/tmk_core/avr.mk
index e11ba2e23..106b77150 100644
--- a/tmk_core/avr.mk
+++ b/tmk_core/avr.mk
@@ -172,11 +172,11 @@ avrdude: $(BUILD_DIR)/$(TARGET).hex check-size
172 if grep -q -s Microsoft /proc/version; then \ 172 if grep -q -s Microsoft /proc/version; then \
173 echo 'ERROR: AVR flashing cannot be automated within the Windows Subsystem for Linux (WSL) currently. Instead, take the .hex file generated and flash it using AVRDUDE, AVRDUDESS, or XLoader.'; \ 173 echo 'ERROR: AVR flashing cannot be automated within the Windows Subsystem for Linux (WSL) currently. Instead, take the .hex file generated and flash it using AVRDUDE, AVRDUDESS, or XLoader.'; \
174 else \ 174 else \
175 printf "Detecting USB port, reset your controller now."; \
175 ls /dev/tty* > /tmp/1; \ 176 ls /dev/tty* > /tmp/1; \
176 echo -e "Detecting USB port, reset your controller now.\c"; \
177 while [ -z $$USB ]; do \ 177 while [ -z $$USB ]; do \
178 echo -e ".\c"; \
179 sleep 0.5; \ 178 sleep 0.5; \
179 printf "."; \
180 ls /dev/tty* > /tmp/2; \ 180 ls /dev/tty* > /tmp/2; \
181 USB=`comm -13 /tmp/1 /tmp/2 | grep -o '/dev/tty.*'`; \ 181 USB=`comm -13 /tmp/1 /tmp/2 | grep -o '/dev/tty.*'`; \
182 mv /tmp/2 /tmp/1; \ 182 mv /tmp/2 /tmp/1; \