Skip to content

Commit 65334e0

Browse files
theob-prokartben
authored andcommitted
Bluetooth: Host: Clear settings CF instead of CCC
`bt_gatt_clear_cf` was calling `bt_settings_delete_ccc` instead of `bt_settings_delete_cf`. This was causing some settings to be left over. Fix the issue by using the correct function. Signed-off-by: Théo Battrel <theo.battrel@nordicsemi.no>
1 parent 4a7ef5c commit 65334e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/host/gatt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6409,7 +6409,7 @@ static int bt_gatt_clear_cf(uint8_t id, const bt_addr_le_t *addr)
64096409
}
64106410

64116411
if (IS_ENABLED(CONFIG_BT_SETTINGS)) {
6412-
return bt_settings_delete_ccc(id, addr);
6412+
return bt_settings_delete_cf(id, addr);
64136413
}
64146414

64156415
return 0;

0 commit comments

Comments
 (0)