rename Gap.getConnection() to simply Connection()

This commit is contained in:
hathach committed 2019-01-22 22:54:33 +07:00
1 parent 5d9f0badb8
commit 89be3a197f
9 files changed
+21 -21

No files matched your search

+1 -1
View File
@@ -81,7 +81,7 @@ void BLEGatt::_eventHandler(ble_evt_t* evt)
const uint16_t evt_conn_hdl = evt->evt.common_evt.conn_handle;
const uint16_t evt_id = evt->header.evt_id;
BLEConnection* conn = (evt_conn_hdl == BLE_CONN_HANDLE_INVALID) ? NULL : Bluefruit.Gap.getConnection(evt_conn_hdl);
BLEConnection* conn = (evt_conn_hdl == BLE_CONN_HANDLE_INVALID) ? NULL : Bluefruit.Gap.Connection(evt_conn_hdl);
/*------------- Server service -------------*/
// TODO multiple peripherals