mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 19:20:54 +00:00
le_device_db_tlv: check if entry exists before decreasing count
This commit is contained in:
parent
86099d9313
commit
75130320d7
@ -175,6 +175,9 @@ int le_device_db_max_count(void){
|
||||
}
|
||||
|
||||
void le_device_db_remove(int index){
|
||||
// check if entry exists
|
||||
if (entry_map[index] == 0) return;
|
||||
|
||||
// delete entry in TLV
|
||||
le_device_db_tlv_delete(index);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user