Минор фикс

This commit is contained in:
2026-02-26 17:52:35 +03:00
parent b11e7cfa83
commit c4bcabdac9

View File

@@ -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;
}