This commit is contained in:
hathach committed 2019-01-21 22:50:41 +07:00
1 parent 4813e14129
commit 5cdded82e9
2 files changed
-6

No files matched your search

-4
View File
@@ -38,7 +38,6 @@
BLEGap::BLEGap(void)
{
memclr(_peers, sizeof(_peers));
memclr(_connection, sizeof(_connection));
_prph.mtu_max = BLE_GATT_ATT_MTU_DEFAULT;
@@ -208,9 +207,6 @@ void BLEGap::_eventHandler(ble_evt_t* evt)
_connection[conn_hdl] = new BLEConnection(conn_hdl, para, hvn_qsize, wrcmd_qsize);
conn = _connection[conn_hdl];
// FIXME to remove
_peers[conn_hdl].role = para->role;
LOG_LV2("GAP", "Conn Interval= %f", para->conn_params.min_conn_interval*1.25f);
// Invoke connect callback
-2
View File
@@ -112,8 +112,6 @@ class BLEGap
disconnect_callback_t disconnect_cb;
} _prph, _central;
gap_peer_t _peers[BLE_MAX_CONN];
ble_gap_sec_params_t _sec_param;
BLEConnection* _connection[BLE_MAX_CONN];