mirror of https://github.com/google/pebble
Merge 400926a1ac into 4051c5bb97
This commit is contained in:
commit
0c0adc3036
|
|
@ -679,6 +679,13 @@ BTBondingID bt_persistent_storage_store_ble_pairing(const SMPairingInfo *new_pai
|
||||||
if (is_gateway && status == GapBondingFileSetUpdated) {
|
if (is_gateway && status == GapBondingFileSetUpdated) {
|
||||||
prv_update_bondings(key, BtPersistBondingTypeBLE);
|
prv_update_bondings(key, BtPersistBondingTypeBLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// In practice we only support a single BLE pairing at a time, so if we add a new one,
|
||||||
|
// set ourselves as unfaithful.
|
||||||
|
if (op == BtPersistBondingOpDidAdd) {
|
||||||
|
bt_persistent_storage_set_unfaithful(true);
|
||||||
|
}
|
||||||
|
|
||||||
prv_call_ble_bonding_change_handlers(key, op);
|
prv_call_ble_bonding_change_handlers(key, op);
|
||||||
|
|
||||||
return key;
|
return key;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue