Skip to content
Commit a60d4b2a authored by Théo Battrel's avatar Théo Battrel Committed by Fabio Baltieri
Browse files

Bluetooth: Host: Fix wrong ID being stored



Fix an issue causing a wrong Bluetooth identity value to be stored. It
was happening because the `bt_dev.id_count` was incremented after the
settings being stored.

To fix this, `bt_dev.id_count` is now incremented right before the ID
creation and is decremented if the ID creation failed.

Signed-off-by: default avatarThéo Battrel <theo.battrel@nordicsemi.no>
(cherry picked from commit 36367676)
parent ff79476b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment