microbit: Revert explicit use of public addresses in pairing mode
parent
203246b975
commit
7a71b58bd4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue