linux wants stty -F. OS X may or may not want stty -f

pull/30/head
Jesse Vincent 8 years ago
parent 2cd59048d1
commit da457c09a1

@ -8,6 +8,7 @@ DEVICE_PORT_BOOTLOADER := `ls /dev/ttyACM*`
ARDUINO_PATH=/usr/local/arduino
ARDUINO_LOCAL_LIB_PATH=$(HOME)/Arduino
RESET_BOARD=stty -F $(DEVICE_PORT) 1200
ifeq ($(uname_S),Darwin)
@ -20,6 +21,7 @@ DEVICE_PORT_BOOTLOADER := `ls /dev/cu.usbmodem14*`
ARDUINO_PATH=/Applications/Arduino.app/Contents/Java/
ARDUINO_LOCAL_LIB_PATH=$(HOME)/Documents/Arduino
RESET_BOARD=stty -f $(DEVICE_PORT) 1200
endif
@ -115,7 +117,7 @@ hex-with-bootloader: compile
@echo "\n\nAnd TEST THIS ON REAL HARDWARE BEFORE YOU GIVE IT TO ANYONE\n\n"
reset-device:
stty -f $(DEVICE_PORT) 1200 ;
$(RESET_BOARD)
flash: compile reset-device
sleep 3

Loading…
Cancel
Save