diff --git a/btle/btle_gattc.cpp b/btle/btle_gattc.cpp index 83b354a..8f254db 100644 --- a/btle/btle_gattc.cpp +++ b/btle/btle_gattc.cpp @@ -48,14 +48,16 @@ struct DiscoveredService { }; struct ble_db_discovery_t { - DiscoveredService services[BLE_DB_DISCOVERY_MAX_SRV]; /**< Information related to the current service being discovered. This is intended for internal use during service discovery.*/ - uint16_t connHandle; /**< Connection handle as provided by the SoftDevice. */ - uint8_t srvCount; /**< Number of services at the peers GATT database.*/ - uint8_t currCharInd; /**< Index of the current characteristic being discovered. This is intended for internal use during service discovery.*/ - uint8_t currSrvInd; /**< Index of the current service being discovered. This is intended for internal use during service discovery.*/ + DiscoveredService services[BLE_DB_DISCOVERY_MAX_SRV]; /**< Information related to the current service being discovered. + * This is intended for internal use during service discovery. */ - bool serviceDiscoveryInProgress; - bool characteristicDiscoveryInProgress; + uint16_t connHandle; /**< Connection handle as provided by the SoftDevice. */ + uint8_t srvCount; /**< Number of services at the peers GATT database.*/ + uint8_t currCharInd; /**< Index of the current characteristic being discovered. This is intended for internal use during service discovery.*/ + uint8_t currSrvInd; /**< Index of the current service being discovered. This is intended for internal use during service discovery.*/ + + bool serviceDiscoveryInProgress; + bool characteristicDiscoveryInProgress; }; static ble_db_discovery_t discoveryStatus;