Skip to content

Commit

Permalink
Update Optiboot flash
Browse files Browse the repository at this point in the history
Merge commit '4ce39beb023a342e8a59c4177f1d6c73b54df11b'
  • Loading branch information
MCUdude committed Feb 28, 2020
2 parents b51cbb3 + 4ce39be commit 1f914b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions avr/bootloaders/optiboot_flash/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ ifeq ($(SUPPORT_EEPROM),1)
SUPPORT_EEPROM_CMD = -DSUPPORT_EEPROM=1
dummy = FORCE
endif
else
SUPPORT_EEPROM=0
endif

# Ability to copy flash pages
Expand All @@ -204,6 +206,8 @@ ifeq ($(COPY_FLASH_PAGES),1)
COPY_FLASH_PAGES_CMD = -DCOPY_FLASH_PAGES=1
dummy = FORCE
endif
else
COPY_FLASH_PAGES=0
endif


Expand Down
2 changes: 1 addition & 1 deletion avr/bootloaders/optiboot_flash/optiboot_flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ void pre_main(void) {
asm volatile (
" rjmp 1f\n"
" rjmp do_spm\n"
#ifdef COPY_FLASH_PAGES_FNC
#ifdef COPY_FLASH_PAGES
" rjmp copy_flash_pages\n"
#endif
"1:\n"
Expand Down

0 comments on commit 1f914b5

Please sign in to comment.