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.
This commit is contained in:
Joe Finney 2016-02-07 19:59:56 +00:00
parent b851e8cd1b
commit 8e3e061bec

View file

@ -330,7 +330,7 @@ int MicroBitBLEManager::getBondCount()
whitelist.capacity = MICROBIT_BLE_MAXIMUM_BONDS;
ble->securityManager().getAddressesFromBondTable(whitelist);
return whitelist.size;
return whitelist.bonds;
}
/**