# HG changeset patch # User matthewreed # Date 2018-08-29 23:49:40 # Node ID 0f4aded51dc1219e0635c157ecc5a453d0823a58 # Parent 01ed20819369a32a76e0d940dc9f52bb795d4e15 Fixed flash HAL definitions again diff --git a/src/flash.c b/src/flash.c --- a/src/flash.c +++ b/src/flash.c @@ -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(); }