Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of nRF51822 by
Diff: btle/btle.cpp
- Revision:
- 77:9886b2865631
- Parent:
- 68:936d81c963fe
- Child:
- 93:0e7a9efee6d7
diff -r ce629a504851 -r 9886b2865631 btle/btle.cpp --- a/btle/btle.cpp Fri Nov 21 10:00:41 2014 +0000 +++ b/btle/btle.cpp Fri Nov 21 10:00:41 2014 +0000 @@ -128,7 +128,8 @@ Gap::Handle_t handle = p_ble_evt->evt.gap_evt.conn_handle; nRF51Gap::getInstance().setConnectionHandle(handle); const Gap::ConnectionParams_t *params = reinterpret_cast<Gap::ConnectionParams_t *>(&(p_ble_evt->evt.gap_evt.params.connected.conn_params)); - nRF51Gap::getInstance().processConnectionEvent(handle, params); + const ble_gap_addr_t *peer = &p_ble_evt->evt.gap_evt.params.connected.peer_addr; + nRF51Gap::getInstance().processConnectionEvent(handle, static_cast<Gap::addr_type_t>(peer->addr_type), peer->addr, params); break; } @@ -281,4 +282,4 @@ { ASSERT_STATUS_RET_VOID( error_code ); NVIC_SystemReset(); -} +} \ No newline at end of file