Shuta Nakamae / nRF51822

Fork of nRF51822 by Nordic Semiconductor

Revision:
201:a13ada00eac7
Parent:
200:be560f1834c0
Child:
202:3ce954ce3eb8
--- a/btle/btle_gattc.cpp	Fri Jun 19 15:55:16 2015 +0100
+++ b/btle/btle_gattc.cpp	Fri Jun 19 15:55:16 2015 +0100
@@ -27,12 +27,6 @@
  *        the discovery process.
  */
 struct DiscoveredService {
-    ShortUUIDBytes_t         uuid;                                           /**< UUID of the service. */
-    // uint8_t                  char_count;                                         /**< Number of characteristics present in the service. */
-    // ble_db_discovery_char_t  charateristics[BLE_DB_DISCOVERY_MAX_CHAR_PER_SRV];  /**< Array of information related to the characteristics present in the service. */
-    Gap::Handle_t startHandle;    /**< Service Handle Range. */
-    Gap::Handle_t endHandle;      /**< Service Handle Range. */
-
     DiscoveredService() {
         /* empty */
     }
@@ -45,6 +39,12 @@
         startHandle = start;
         endHandle   = end;
     }
+
+    ShortUUIDBytes_t         uuid;                                           /**< UUID of the service. */
+    // uint8_t                  char_count;                                         /**< Number of characteristics present in the service. */
+    // ble_db_discovery_char_t  charateristics[BLE_DB_DISCOVERY_MAX_CHAR_PER_SRV];  /**< Array of information related to the characteristics present in the service. */
+    Gap::Handle_t startHandle;    /**< Service Handle Range. */
+    Gap::Handle_t endHandle;      /**< Service Handle Range. */
 };
 
 struct ble_db_discovery_t {