This commit is contained in:
Willy-JL
2023-02-06 14:16:03 +00:00
parent a650da5232
commit 3acfe5b215
2 changed files with 4 additions and 4 deletions

View File

@@ -445,12 +445,12 @@ GapPairing bt_get_profile_pairing_method(Bt* bt) {
return furi_hal_bt_get_profile_pairing_method(get_hal_bt_profile(bt->profile)); return furi_hal_bt_get_profile_pairing_method(get_hal_bt_profile(bt->profile));
} }
void bt_disable_peer_key_update(Bt *bt) { void bt_disable_peer_key_update(Bt* bt) {
UNUSED(bt); UNUSED(bt);
furi_hal_bt_set_key_storage_change_callback(NULL, NULL); furi_hal_bt_set_key_storage_change_callback(NULL, NULL);
} }
void bt_enable_peer_key_update(Bt *bt) { void bt_enable_peer_key_update(Bt* bt) {
furi_hal_bt_set_key_storage_change_callback(bt_on_key_storage_change_callback, bt); furi_hal_bt_set_key_storage_change_callback(bt_on_key_storage_change_callback, bt);
} }

View File

@@ -55,13 +55,13 @@ GapPairing bt_get_profile_pairing_method(Bt* bt);
/** Stop saving new peer key to flash (in .bt.keys file) /** Stop saving new peer key to flash (in .bt.keys file)
* *
*/ */
void bt_disable_peer_key_update(Bt *bt); void bt_disable_peer_key_update(Bt* bt);
/** Enable saving peer key to internal flash (enable by default) /** Enable saving peer key to internal flash (enable by default)
* *
* @note This function should be called if bt_disable_peer_key_update was called before * @note This function should be called if bt_disable_peer_key_update was called before
*/ */
void bt_enable_peer_key_update(Bt *bt); void bt_enable_peer_key_update(Bt* bt);
/** Disconnect from Central /** Disconnect from Central
* *