remove a getPeerAddr(uint8_t[6]) variant

This commit is contained in:
hathach committed 2019-01-24 01:12:30 +07:00
1 parent a6ba9aa1cf
commit 667d054771
5 files changed
+3 -22

No files matched your search

@@ -98,12 +98,6 @@ ble_gap_addr_t BLEConnection::getPeerAddr (void)
return _addr;
}
uint8_t BLEConnection::getPeerAddr (uint8_t addr[6])
{
memcpy(addr, _addr.addr, BLE_GAP_ADDR_LEN);
return _addr.addr_type;
}
bool BLEConnection::disconnect(void)
{
return ERROR_NONE == sd_ble_gap_disconnect(_conn_hdl, BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);