Минор фикс
This commit is contained in:
@@ -72,14 +72,14 @@ HAL_StatusTypeDef Settings_Init(SettingsTypeDef *settings, SPI_HandleTypeDef *hs
|
||||
MEMSPI_Base_Init(settings->hmemspi, hspi);
|
||||
|
||||
#ifdef SETTINGS_USE_WEAR_LEVELING_FLASH
|
||||
if(MEMSPI_FLASH_Protection(&memory_spi, 0, 0x11000, 1000, 1) != HAL_OK)
|
||||
if(MEMSPI_FLASH_Protection(&memory_spi, 0, 0x11000, ENABLE, 1000) != HAL_OK)
|
||||
{
|
||||
return HAL_ERROR;
|
||||
}
|
||||
|
||||
ParamsFlash_HandleInit(&settings->flash_handle, 0, 1, settings->settings_size);
|
||||
|
||||
if(MEMSPI_FLASH_Protection(&memory_spi, 0, 0x11000, 1000, 1) != HAL_OK)
|
||||
if(MEMSPI_FLASH_Protection(&memory_spi, 0, 0x11000, ENABLE, 1000) != HAL_OK)
|
||||
{
|
||||
return HAL_ERROR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user