qmk

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.z3bra.org/qmk.git
Log | Files | Refs | Submodules | LICENSE

commit 361810dca80b31b2ba236df8fdea48b89fedfd4d
parent 53ff8a31b61952d9675558149d927f7942071df9
Author: Danny Nguyen <danny@keeb.io>
Date:   Thu, 25 Jan 2018 16:36:01 -0500

Only search through newly detected devices and discard ones that disappeared

Diffstat:
tmk_core/avr.mk | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tmk_core/avr.mk b/tmk_core/avr.mk @@ -175,10 +175,11 @@ avrdude: $(BUILD_DIR)/$(TARGET).hex check-size ls /dev/tty* > /tmp/1; \ echo -e "Detecting USB port, reset your controller now.\c"; \ while [ -z $$USB ]; do \ - sleep 1; \ echo -e ".\c"; \ + sleep 0.5; \ ls /dev/tty* > /tmp/2; \ - USB=`diff /tmp/1 /tmp/2 | grep -o '/dev/tty.*'`; \ + USB=`comm -13 /tmp/1 /tmp/2 | grep -o '/dev/tty.*'`; \ + mv /tmp/2 /tmp/1; \ done; \ echo ""; \ echo "Detected controller on USB port at $$USB"; \