main firmware: fix eeprom reliability, add more LED programs

This commit is contained in:
true
2023-08-05 00:59:48 -07:00
parent f475596dcc
commit 60bd8d88b7
6 changed files with 413 additions and 81 deletions

View File

@@ -1017,7 +1017,7 @@ FLASH_Status EEPROM_EraseByte(uint32_t Address)
{
/* If the previous operation is completed, proceed to program the new data */
FLASH->ECR |= FLASH_ECR_EEPROM_ER;
FLASH->AR = Address;
FLASH->AR = Address;
FLASH->CR |= FLASH_CR_STRT;
/* Wait for last operation to be completed */