Update eeprom.c
Changed from "==false" to "!=HAL_OK" on line 58
This commit is contained in:
parent
e91a7aa073
commit
0b37729194
2
eeprom.c
2
eeprom.c
|
@ -55,7 +55,7 @@ bool EE_Write(uint16_t VirtualAddress, uint32_t Data)
|
||||||
HAL_FLASH_Unlock();
|
HAL_FLASH_Unlock();
|
||||||
for(uint16_t i=0 ; i<_EEPROM_FLASH_PAGE_SIZE/4 ; i++)
|
for(uint16_t i=0 ; i<_EEPROM_FLASH_PAGE_SIZE/4 ; i++)
|
||||||
{
|
{
|
||||||
if(HAL_FLASH_Program(FLASH_TYPEPROGRAM_WORD,(i*4)+_EEPROM_FLASH_PAGE_ADDRESS,(uint64_t)EEPROMPageBackup[i])==false)
|
if(HAL_FLASH_Program(FLASH_TYPEPROGRAM_WORD,(i*4)+_EEPROM_FLASH_PAGE_ADDRESS,(uint64_t)EEPROMPageBackup[i])!=HAL_OK)
|
||||||
{
|
{
|
||||||
HAL_FLASH_Lock();
|
HAL_FLASH_Lock();
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user