Project

General

Profile

Revision 1390

Added by Rich Hong over 14 years ago

fixes #570 avrdude port detection

View differences:

Makefile
210 210
AVRDUDE_PROGRAMMER = avrisp
211 211

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

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

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

Also available in: Unified diff