Revision 1390
fixes #570 avrdude port detection
Makefile | ||
---|---|---|
208 | 208 |
AVRDUDE_PROGRAMMER = avrisp |
209 | 209 |
|
210 | 210 |
# com1 = serial port. Use lpt1 to connect to parallel port. |
211 |
AVRDUDE_PORT = com1
|
|
211 |
AVRDUDE_PORT = $(shell if uname -s |grep -i w32 >/dev/null; then echo 'COM4:'; else echo '/dev/ttyUSB0'; fi)
|
|
212 | 212 |
# programmer connected to serial device |
213 | 213 |
|
214 | 214 |
AVRDUDE_WRITE_FLASH = -b 9600 -U flash:w:$(TARGET).hex |
Also available in: Unified diff