More reliable device discovery when flashing

pull/18/head
Scott Perry 8 years ago
parent 8a0006563c
commit 638dcc660c

@ -4,9 +4,8 @@
BOARD = model01 BOARD = model01
MCU = atmega32u4 MCU = atmega32u4
DEVICE_PORT := `ls /dev/cu.usbmodemHID??` DEVICE_PORT := `ls /dev/cu.usbmodemHID?? /dev/cu.usbmodem14*`
DEVICE_PORT := `ls /dev/cu.usbmodem14?1` DEVICE_PORT_BOOTLOADER := `ls /dev/cu.usbmodem14*`
DEVICE_PORT_BOOTLOADER := `ls /dev/cu.usbmodem14?1`
ARDUINO_LIBS = ARDUINO_LIBS =
GIT_VERSION := $(shell git describe --abbrev=4 --dirty --always) GIT_VERSION := $(shell git describe --abbrev=4 --dirty --always)
@ -61,7 +60,7 @@ size: compile
$(ARDUINO_TOOLS_PATH)/avr/bin/avr-size -C --mcu=$(MCU) $(ELF_FILE_PATH) $(ARDUINO_TOOLS_PATH)/avr/bin/avr-size -C --mcu=$(MCU) $(ELF_FILE_PATH)
reset-device: reset-device:
-stty -f $(DEVICE_PORT) 1200 ; stty -f $(DEVICE_PORT) 1200 ;
flash: compile reset-device flash: compile reset-device
sleep 3 sleep 3

Loading…
Cancel
Save