add comment follow up to #413

This commit is contained in:
hathach committed 2020-01-31 11:15:15 +07:00
1 parent a724c718f6
commit 1f3c237fc5
2 files changed
+4 -4

No files matched your search

@@ -134,8 +134,8 @@ uint8_t BLEDiscovery::discoverCharacteristic(uint16_t conn_handle, BLEClientChar
{
for (uint8_t i=0; i<count; i++)
{
if ( chr[i]->discovered() )
continue;
// Skip if output chr is already discovered, happens with multiple instances of same UUIDs
if ( chr[i]->discovered() ) continue;
if ( chr[i]->uuid == disc_chr->chars[d].uuid )
{
+2 -2
View File
@@ -183,7 +183,7 @@ void BLEGatt::_eventHandler(ble_evt_t* evt)
// disconnect Client Services & Characteristics of the disconnected handle
if ( evt_id == BLE_GAP_EVT_DISCONNECTED )
{
// Client
// Client Chr
for(uint8_t i=0; i<_client.chr_count; i++)
{
if ( evt_conn_hdl == _client.chr_list[i]->connHandle() )
@@ -192,7 +192,7 @@ void BLEGatt::_eventHandler(ble_evt_t* evt)
}
}
// TODO merge to above loop
// Client Service TODO merge to above loop
for(uint8_t i=0; i<_client.svc_count; i++)
{
if ( evt_conn_hdl == _client.svc_list[i]->_conn_hdl)