From 38127c2fa33da4d0f66579ae8d9841729752cdb4 Mon Sep 17 00:00:00 2001 From: Steven James Date: Thu, 16 Jul 2020 13:59:55 -0400 Subject: [PATCH] Clean up formatting --- libraries/Bluefruit52Lib/src/BLEDiscovery.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/Bluefruit52Lib/src/BLEDiscovery.cpp b/libraries/Bluefruit52Lib/src/BLEDiscovery.cpp index 193e534f..0e2b487e 100644 --- a/libraries/Bluefruit52Lib/src/BLEDiscovery.cpp +++ b/libraries/Bluefruit52Lib/src/BLEDiscovery.cpp @@ -130,8 +130,8 @@ uint8_t BLEDiscovery::discoverCharacteristic(uint16_t conn_handle, BLEClientChar // timeout or has no data (due to GATT Error) if ( bytecount <= 0 ) break; - if ( disc_chr->count > MAX_DISC_CHARS ) // if we truncated the response, adjust the count to match - disc_chr->count = MAX_DISC_CHARS; + // if we truncated the response, adjust the count to match + if ( disc_chr->count > MAX_DISC_CHARS ) disc_chr->count = MAX_DISC_CHARS; // Look for matched uuid in the discovered list for(uint8_t d=0 ; dcount; d++)