diff --git a/btle/btle_gattc.cpp b/btle/btle_gattc.cpp index 2fa131c..365da9d 100644 --- a/btle/btle_gattc.cpp +++ b/btle/btle_gattc.cpp @@ -47,15 +47,14 @@ struct DiscoveredService { } }; -typedef struct -{ +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.*/ + 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; /**< Variable to indicate if there is a service discovery in progress. */ -} ble_db_discovery_t; +}; static ble_db_discovery_t discoveryStatus;