Project

General

Profile

Revision 1390

Added by Rich Hong almost 10 years ago

fixes #570 avrdude port detection

View differences:

Makefile
202 202
AVRDUDE_PROGRAMMER = avrisp
203 203

  
204 204
# com1 = serial port. Use lpt1 to connect to parallel port.
205
AVRDUDE_PORT = /dev/ttyUSB0

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

  
208 208
AVRDUDE_WRITE_FLASH = -b 9600 -U flash:w:$(TARGET).hex

Also available in: Unified diff