diff options
| author | Sudar <sudar@sudarmuthu.com> | 2013-10-05 08:19:58 +0530 |
|---|---|---|
| committer | Sudar <sudar@sudarmuthu.com> | 2013-10-06 17:43:03 +0530 |
| commit | 9ff2b2e4d66e31677118becb2f83a52ce0e97184 (patch) | |
| tree | 643c4af821d8e023a38fde3b1e36c37792109a1f /arduino-mk | |
| parent | 9c22972b98089e47251a4dcd0e570de0fcb4b8a6 (diff) | |
Don't append port details to avrdude for usbasp
When usbasp is used as programmer, there is no need to specify the port
to avrdude.
Fix #123
Diffstat (limited to 'arduino-mk')
| -rw-r--r-- | arduino-mk/Arduino.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk index 1862548..f3584ae 100644 --- a/arduino-mk/Arduino.mk +++ b/arduino-mk/Arduino.mk @@ -1011,7 +1011,11 @@ ifndef AVRDUDE_ISP_FUSES_POST endif endif -AVRDUDE_ISP_OPTS = -c $(ISP_PROG) -b $(AVRDUDE_ISP_BAUDRATE) -P $(call get_isp_port) +AVRDUDE_ISP_OPTS = -c $(ISP_PROG) -b $(AVRDUDE_ISP_BAUDRATE) + +ifneq ($(strip $(ISP_PROG)),usbasp) + AVRDUDE_ISP_OPTS += -P $(call get_isp_port) +endif ifndef ISP_EEPROM ISP_EEPROM = 0 |
