1

Fork of nRF51822 by Nordic Semiconductor

Revision:
347:b5d18c33fd8a
Parent:
346:14b090482fd2
--- a/nRF51ServiceDiscovery.cpp	Fri Jun 19 15:55:35 2015 +0100
+++ b/nRF51ServiceDiscovery.cpp	Fri Jun 19 15:55:35 2015 +0100
@@ -227,10 +227,9 @@
             .uuid = BLE_UUID_CHARACTERISTIC,
             .type = BLE_UUID_TYPE_BLE,
         };
-        ble_gattc_handle_range_t handleRange = {
-            .start_handle = parentDiscoveryObject->characteristics[charIndex].getDeclHandle(),
-            .end_handle   = parentDiscoveryObject->characteristics[charIndex].getDeclHandle() + 1,
-        };
+        ble_gattc_handle_range_t handleRange = { };
+        handleRange.start_handle = parentDiscoveryObject->characteristics[charIndex].getDeclHandle();
+        handleRange.end_handle   = parentDiscoveryObject->characteristics[charIndex].getDeclHandle() + 1;
         if (sd_ble_gattc_char_value_by_uuid_read(parentDiscoveryObject->connHandle, &uuid, &handleRange) == NRF_SUCCESS) {
             return;
         }