microbit: Revert explicit use of public addresses in pairing mode

This commit is contained in:
Joe Finney 2016-01-04 23:06:48 +00:00
parent 203246b975
commit 7a71b58bd4

View file

@ -233,11 +233,6 @@ void MicroBitBLEManager::pairingMode(MicroBitDisplay &display)
// Update the advertised name of this micro:bit to include the device name
ble->clearAdvertisingPayload();
#if CONFIG_ENABLED(MICROBIT_BLE_PRIVATE_ADDRESSES)
// Always configure for public addresses in pairing mode...
ble->setAddress(Gap::ADDR_TYPE_PUBLIC, NULL);
#endif
ble->accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED | GapAdvertisingData::LE_GENERAL_DISCOVERABLE);
ble->accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LOCAL_NAME, (uint8_t *)BLEName.toCharArray(), BLEName.length());
ble->setAdvertisingType(GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED);