Skip to content

Commit 3ccfbac

Browse files
committed
enable UPDATE_EEPROM_ENABLE
this allows the bl version to show in am32.ca
1 parent 35a244f commit 3ccfbac

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bootloader/main.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@
4747
*/
4848
#define CHECK_EEPROM_BEFORE_JUMP 1
4949

50+
/*
51+
should we update the bootloader version in eeprom?
52+
*/
53+
#define UPDATE_EEPROM_ENABLE 1
54+
5055
#include <string.h>
5156

5257
#ifndef MCU_FLASH_START
@@ -686,7 +691,7 @@ static void receiveBuffer()
686691
static void update_EEPROM()
687692
{
688693
read_flash_bin(rxBuffer , EEPROM_START_ADD , 48);
689-
if(BOOTLOADER_VERSION != rxBuffer[2]) {
694+
if (BOOTLOADER_VERSION != rxBuffer[2]) {
690695
if (rxBuffer[2] == 0xFF || rxBuffer[2] == 0x00){
691696
return;
692697
}

0 commit comments

Comments
 (0)