Project

General

Profile

Revision 1390

Added by Rich Hong over 10 years ago

fixes #570 avrdude port detection

View differences:

Makefile
209 209
AVRDUDE_PROGRAMMER = avrisp
210 210

  
211 211
# com1 = serial port. Use lpt1 to connect to parallel port.
212
AVRDUDE_PORT = /dev/ttyUSB0

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

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

Also available in: Unified diff