We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b9c214b + 041d53d commit 774294dCopy full SHA for 774294d
features/FEATURE_BLE/targets/TARGET_CORDIO_ODIN_W2/HCIDriver.cpp
@@ -337,10 +337,22 @@ void ble::vendor::odin_w2::HCIDriver::handle_reset_sequence(uint8_t *pMsg)
337
randCnt++;
338
HciLeRandCmd();
339
} else {
340
- signal_reset_sequence_done();
+ uint8_t addr[6] = { 0 };
341
+ memcpy(addr, pMsg, sizeof(addr));
342
+ DM_RAND_ADDR_SET(addr, DM_RAND_ADDR_STATIC);
343
+ // note: will invoke set rand address
344
+ cordio::BLE::deviceInstance().getGap().setAddress(
345
+ BLEProtocol::AddressType::RANDOM_STATIC,
346
+ addr
347
+ );
348
}
349
break;
350
351
+ case HCI_OPCODE_LE_SET_RAND_ADDR:
352
+ /* send next command in sequence */
353
+ signal_reset_sequence_done();
354
+ break;
355
+
356
default:
357
358
0 commit comments