diff options
Diffstat (limited to 'tmk_core/avr.mk')
| -rw-r--r-- | tmk_core/avr.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tmk_core/avr.mk b/tmk_core/avr.mk index 24722736e..e11ba2e23 100644 --- a/tmk_core/avr.mk +++ b/tmk_core/avr.mk | |||
| @@ -175,10 +175,11 @@ avrdude: $(BUILD_DIR)/$(TARGET).hex check-size | |||
| 175 | ls /dev/tty* > /tmp/1; \ | 175 | ls /dev/tty* > /tmp/1; \ |
| 176 | echo -e "Detecting USB port, reset your controller now.\c"; \ | 176 | echo -e "Detecting USB port, reset your controller now.\c"; \ |
| 177 | while [ -z $$USB ]; do \ | 177 | while [ -z $$USB ]; do \ |
| 178 | sleep 1; \ | ||
| 179 | echo -e ".\c"; \ | 178 | echo -e ".\c"; \ |
| 179 | sleep 0.5; \ | ||
| 180 | ls /dev/tty* > /tmp/2; \ | 180 | ls /dev/tty* > /tmp/2; \ |
| 181 | USB=`diff /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 | done; \ | 183 | done; \ |
| 183 | echo ""; \ | 184 | echo ""; \ |
| 184 | echo "Detected controller on USB port at $$USB"; \ | 185 | echo "Detected controller on USB port at $$USB"; \ |
