File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 39
39
40
40
#ifdef CONFIG_CHIP_FACTORY_RESET_ERASE_SETTINGS
41
41
#include < zephyr/settings/settings.h>
42
- #ifdef CONFIG_SETTINGS_NVS
42
+ #if defined( CONFIG_SETTINGS_NVS)
43
43
#include < zephyr/fs/nvs.h>
44
- #elif CONFIG_SETTINGS_ZMS
44
+ #elif defined( CONFIG_SETTINGS_ZMS)
45
45
#include < zephyr/fs/zms.h>
46
46
#endif // CONFIG_SETTINGS_NVS || CONFIG_SETTINGS_ZMS
47
47
#endif // CONFIG_CHIP_FACTORY_RESET_ERASE_SETTINGS
@@ -204,9 +204,9 @@ void ConfigurationManagerImpl::DoFactoryReset(intptr_t arg)
204
204
205
205
if (status == 0 )
206
206
{
207
- #ifdef CONFIG_SETTINGS_NVS
207
+ #if defined( CONFIG_SETTINGS_NVS)
208
208
status = nvs_clear (static_cast <nvs_fs *>(storage));
209
- #elif CONFIG_SETTINGS_ZMS
209
+ #elif defined( CONFIG_SETTINGS_ZMS)
210
210
status = zms_clear (static_cast <zms_fs *>(storage));
211
211
#endif // CONFIG_SETTINGS_NVS || CONFIG_SETTINGS_ZMS
212
212
}
You can’t perform that action at this time.
0 commit comments