Project

General

Profile

Revision 1390

Added by Rich Hong about 10 years ago

fixes #570 avrdude port detection

View differences:

Makefile
211 211
AVRDUDE_PROGRAMMER = avrisp
212 212

  
213 213
# com1 = serial port. Use lpt1 to connect to parallel port.
214
AVRDUDE_PORT = /dev/ttyUSB1

214
AVRDUDE_PORT = $(shell if uname -s |grep -i w32 >/dev/null; then echo 'COM4:'; else echo '/dev/ttyUSB0'; fi)
215 215
# programmer connected to serial device
216 216

  
217 217
AVRDUDE_WRITE_FLASH = -b 57600 -U flash:w:$(TARGET).hex

Also available in: Unified diff