microbit: BUGFIX Fixed incorrect bond table entry count
The nordic implementation of the mbed whitelist API introduces entries into the table that are not bonds. This patch corrects an assumption in microbit-dal that the number of entries in the bond table table corellates with the number of bonds.master
parent
b851e8cd1b
commit
8e3e061bec
|
@ -330,7 +330,7 @@ int MicroBitBLEManager::getBondCount()
|
|||
whitelist.capacity = MICROBIT_BLE_MAXIMUM_BONDS;
|
||||
ble->securityManager().getAddressesFromBondTable(whitelist);
|
||||
|
||||
return whitelist.size;
|
||||
return whitelist.bonds;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue