Skip to content

Commit 1f3c237

Browse files
committed
add comment follow up to #413
1 parent a724c71 commit 1f3c237

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libraries/Bluefruit52Lib/src/BLEDiscovery.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ uint8_t BLEDiscovery::discoverCharacteristic(uint16_t conn_handle, BLEClientChar
134134
{
135135
for (uint8_t i=0; i<count; i++)
136136
{
137-
if ( chr[i]->discovered() )
138-
continue;
137+
// Skip if output chr is already discovered, happens with multiple instances of same UUIDs
138+
if ( chr[i]->discovered() ) continue;
139139

140140
if ( chr[i]->uuid == disc_chr->chars[d].uuid )
141141
{

libraries/Bluefruit52Lib/src/BLEGatt.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ void BLEGatt::_eventHandler(ble_evt_t* evt)
183183
// disconnect Client Services & Characteristics of the disconnected handle
184184
if ( evt_id == BLE_GAP_EVT_DISCONNECTED )
185185
{
186-
// Client
186+
// Client Chr
187187
for(uint8_t i=0; i<_client.chr_count; i++)
188188
{
189189
if ( evt_conn_hdl == _client.chr_list[i]->connHandle() )
@@ -192,7 +192,7 @@ void BLEGatt::_eventHandler(ble_evt_t* evt)
192192
}
193193
}
194194

195-
// TODO merge to above loop
195+
// Client Service TODO merge to above loop
196196
for(uint8_t i=0; i<_client.svc_count; i++)
197197
{
198198
if ( evt_conn_hdl == _client.svc_list[i]->_conn_hdl)

0 commit comments

Comments
 (0)