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