Update Arduino.mk

Update -D comment.
This commit is contained in:
hhgarnes 2015-06-01 23:33:53 +02:00
parent 5c0d77528b
commit 75c2a9407e

View file

@ -1296,7 +1296,8 @@ ifdef AVRDUDE_CONF
endif
# -D - Disable auto erase for flash memory
# -D is needed for Mega boards. (See https://github.com/sudar/Arduino-Makefile/issues/114#issuecomment-25011005)
# Note: -D is needed for Mega boards.
# (See https://github.com/sudar/Arduino-Makefile/issues/114#issuecomment-25011005)
AVRDUDE_ARD_OPTS = -D -c $(AVRDUDE_ARD_PROGRAMMER) -b $(AVRDUDE_ARD_BAUDRATE) -P
ifeq ($(CURRENT_OS), WINDOWS)
# get_monitor_port checks to see if the monitor port exists, assuming it is
@ -1361,7 +1362,9 @@ ifndef AVRDUDE_ISP_FUSES_POST
endif
endif
# -D may cause issues with some boards like attiny84a.
# Note: setting -D to disable flash erase before programming may cause issues
# with some boards like attiny84a, making the program not "take",
# so we do not set it by default.
AVRDUDE_ISP_OPTS = -c $(ISP_PROG) -b $(AVRDUDE_ISP_BAUDRATE)
ifndef $(ISP_PORT)