Changeset - 0f4aded51dc1
[Not reviewed]
default
0 1 0
matthewreed - 6 years ago 2018-08-29 23:49:40

Fixed flash HAL definitions again
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/flash.c
Show inline comments
 
@@ -58,12 +58,12 @@ static void __flash_write(flash_settings
 
    uint16_t i;
 
    for(i = 0; i < (sizeof(flash_settings_t)/2); i++)
 
    {
 
        HAL_FLASH_Program(FLASH_PROC_PROGRAMHALFWORD, (uint32_t)&eeprom[i], tosave->data[i]);
 
        HAL_FLASH_Program(FLASH_TYPEPROGRAM_HALFWORD, (uint32_t)&eeprom[i], tosave->data[i]);
 
        checksum ^= tosave->data[i];
 
    }
 
 
    // write the checksum
 
    HAL_FLASH_Program(FLASH_PROC_PROGRAMHALFWORD, (uint32_t)&eeprom[i+1], checksum);
 
    HAL_FLASH_Program(FLASH_TYPEPROGRAM_HALFWORD, (uint32_t)&eeprom[i+1], checksum);
 
 
    HAL_FLASH_Lock();
 
}
0 comments (0 inline, 0 general)