diff options
| author | Lorenzo Delana <oss.devel@searchathing.com> | 2018-10-13 02:28:32 +0200 |
|---|---|---|
| committer | Lorenzo Delana <oss.devel@searchathing.com> | 2018-10-13 02:28:32 +0200 |
| commit | ec1947a7cda724b4de7783a1f74abf31ae59e955 (patch) | |
| tree | f1db69df73ddd652197d86aef1492b829add71e1 | |
| parent | b351ab375d09c3890635552fe3535da66d29cde1 (diff) | |
allow to enable AVRDUDE_AUTOERASE_FLASH
| -rw-r--r-- | Arduino.mk | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1490,7 +1490,11 @@ endif # -D - Disable auto erase for flash memory # 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 ($(AVRDUDE_AUTOERASE_FLASH), yes) +else + AVRDUDE_ARD_OPTS = -D +endif +AVRDUDE_ARD_OPTS += -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 # a file. In Windows, avrdude needs the port in the format 'com1' which is |
