From d7b895c88f106b951f3577f0dd94a7aa4f9819ca Mon Sep 17 00:00:00 2001 From: Arkadiusz Balys Date: Wed, 16 Oct 2024 16:35:28 +0200 Subject: [PATCH] [nrf toup] Fix defines for ZMS It can be squashed with the 0c49058 commit. Signed-off-by: Arkadiusz Balys --- src/platform/Zephyr/ConfigurationManagerImpl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/platform/Zephyr/ConfigurationManagerImpl.cpp b/src/platform/Zephyr/ConfigurationManagerImpl.cpp index 61b196be94..712f170b0e 100644 --- a/src/platform/Zephyr/ConfigurationManagerImpl.cpp +++ b/src/platform/Zephyr/ConfigurationManagerImpl.cpp @@ -39,9 +39,9 @@ #ifdef CONFIG_CHIP_FACTORY_RESET_ERASE_SETTINGS #include -#ifdef CONFIG_SETTINGS_NVS +#if defined(CONFIG_SETTINGS_NVS) #include -#elif CONFIG_SETTINGS_ZMS +#elif defined(CONFIG_SETTINGS_ZMS) #include #endif // CONFIG_SETTINGS_NVS || CONFIG_SETTINGS_ZMS #endif // CONFIG_CHIP_FACTORY_RESET_ERASE_SETTINGS @@ -204,9 +204,9 @@ void ConfigurationManagerImpl::DoFactoryReset(intptr_t arg) if (status == 0) { -#ifdef CONFIG_SETTINGS_NVS +#if defined(CONFIG_SETTINGS_NVS) status = nvs_clear(static_cast(storage)); -#elif CONFIG_SETTINGS_ZMS +#elif defined(CONFIG_SETTINGS_ZMS) status = zms_clear(static_cast(storage)); #endif // CONFIG_SETTINGS_NVS || CONFIG_SETTINGS_ZMS }