Skip to content

Commit 7a26a86

Browse files
authored
Merge pull request #540 from sej7278/master
Moved -e flag for avrdude from set_fuses to ispload
2 parents bc5092f + 246e568 commit 7a26a86

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Arduino.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,7 @@ reset_stty:
15311531
$$STTYF $(call get_monitor_port) -hupcl
15321532

15331533
ispload: $(TARGET_EEP) $(TARGET_HEX) verify_size
1534-
$(AVRDUDE) $(AVRDUDE_COM_OPTS) $(AVRDUDE_ISP_OPTS) \
1534+
$(AVRDUDE) $(AVRDUDE_COM_OPTS) $(AVRDUDE_ISP_OPTS) -e \
15351535
$(AVRDUDE_ISPLOAD_OPTS)
15361536

15371537
burn_bootloader:
@@ -1547,7 +1547,7 @@ endif
15471547

15481548
set_fuses:
15491549
ifneq ($(strip $(AVRDUDE_ISP_FUSES_PRE)),)
1550-
$(AVRDUDE) $(AVRDUDE_COM_OPTS) $(AVRDUDE_ISP_OPTS) -e $(AVRDUDE_ISP_FUSES_PRE)
1550+
$(AVRDUDE) $(AVRDUDE_COM_OPTS) $(AVRDUDE_ISP_OPTS) $(AVRDUDE_ISP_FUSES_PRE)
15511551
endif
15521552
ifneq ($(strip $(AVRDUDE_ISP_FUSES_POST)),)
15531553
$(AVRDUDE) $(AVRDUDE_COM_OPTS) $(AVRDUDE_ISP_OPTS) $(AVRDUDE_ISP_FUSES_POST)

HISTORY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ I tried to give credit whenever possible. If I have missed anyone, kindly add it
88
- Fix: Add -fno-devirtualize flag to workaround g++ segfault bug (issue #486). (https://github.com/sej7278)
99
- Fix: Quote the prefix tag in the space_pad_to function
1010
- Fix: recognize serial monitors with full path in MONITOR_CMD
11+
- Tweak: Move chip erase flag from set_fuses to ispload to prevent sketch being nuked when setting fuses
1112
- Tweak: Set ARDMK_VERSION to 1.6 (https://github.com/sej7278)
1213
- Tweak: Move non-standard-related items from CxxFLAGS_STD to CxxFLAGS (issue #523) (https://github.com/sej7278)
1314
- Tweak: Update Windows usage documentation and allow non-relative paths (issue #519) (https://github.com/tuna-f1sh)

0 commit comments

Comments
 (0)