Project

General

Profile

Revision 1390

Added by Rich Hong almost 10 years ago

fixes #570 avrdude port detection

View differences:

Makefile
15 15

  
16 16
# com1 = serial port. Use lpt1 to connect to parallel port.
17 17
#AVRDUDE_PORT = com4
18
AVRDUDE_PORT = $(shell if [ -e /dev/ttyUSB0 ]; then echo /dev/ttyUSB0; else echo 'COM4:'; fi)
18
AVRDUDE_PORT = $(shell if uname -s |grep -i w32 >/dev/null; then echo 'COM4:'; else echo '/dev/ttyUSB0'; fi)
19 19
#
20 20
#
21 21
###################################

Also available in: Unified diff