Skip to content

Commit e6bcfcb

Browse files
committed
update bond remove keys
1 parent c6167bc commit e6bcfcb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

libraries/Bluefruit52Lib/src/utility/bonding.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -389,10 +389,10 @@ void bond_clear_all(void)
389389
InternalFS.mkdir(BOND_DIR_CNTR);
390390
}
391391

392-
void bond_remove_key(uint8_t role, uint16_t ediv)
392+
void bond_remove_key(uint8_t role, ble_gap_addr_t const* id_addr)
393393
{
394-
// char filename[BOND_FNAME_LEN];
395-
// get_fname(filename, role, ediv);
396-
//
397-
// InternalFS.remove(filename);
394+
char filename[BOND_FNAME_LEN];
395+
get_fname(filename, role, id_addr->addr);
396+
397+
InternalFS.remove(filename);
398398
}

libraries/Bluefruit52Lib/src/utility/bonding.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void bond_clear_prph(void);
5757
void bond_clear_cntr(void);
5858
void bond_clear_all(void);
5959

60-
void bond_remove_key(uint8_t role, uint16_t ediv) TU_ATTR_DEPRECATED("FIXME remove key");
60+
void bond_remove_key(uint8_t role, ble_gap_addr_t const* id_addr);
6161

6262
bool bond_save_keys (uint8_t role, uint16_t conn_hdl, bond_keys_t const* bkeys);
6363
bool bond_load_keys(uint8_t role, ble_gap_addr_t*, bond_keys_t* bkeys);

0 commit comments

Comments
 (0)