mesh: Fix incorrect reference to BT_SETTINGS

The test for IS_ENABLED(BT_SETTINGS) in mod_reset()
should be IS_ENABLED(CONFIG_BT_SETTINGS).
This commit is contained in:
Michał Narajowski
2019-01-31 17:50:26 +01:00
parent 0e18a15037
commit 4a2884b018
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -351,7 +351,6 @@ static inline unsigned int find_msb_set(u32_t op)
#define CONFIG_BT_TESTING BLE_MESH_TESTING
#define CONFIG_BT_SETTINGS BLE_MESH_SETTINGS
#define CONFIG_SETTINGS BLE_MESH_SETTINGS
#define BT_SETTINGS BLE_MESH_SETTINGS
/* Above flags are used with IS_ENABLED macro */
#define IS_ENABLED(config) MYNEWT_VAL(config)
+1 -1
View File
@@ -3410,7 +3410,7 @@ static void mod_reset(struct bt_mesh_model *mod, struct bt_mesh_elem *elem,
mod_sub_list_clear(mod);
if (IS_ENABLED(BT_SETTINGS)) {
if (IS_ENABLED(CONFIG_BT_SETTINGS)) {
bt_mesh_store_mod_sub(mod);
}
}