From 75c2a9407ef69d34950e6db59205942424af0a09 Mon Sep 17 00:00:00 2001 From: hhgarnes Date: Mon, 1 Jun 2015 23:33:53 +0200 Subject: [PATCH] Update Arduino.mk Update -D comment. --- Arduino.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Arduino.mk b/Arduino.mk index debd32d..936645a 100644 --- a/Arduino.mk +++ b/Arduino.mk @@ -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)