@@ -24,8 +24,8 @@ nRF5xServiceDiscovery::launchCharacteristicDiscovery(Gap::Handle_t connectionHan
24
24
characteristicDiscoveryStarted (connectionHandle);
25
25
26
26
ble_gattc_handle_range_t handleRange = {
27
- . start_handle = startHandle,
28
- . end_handle = endHandle
27
+ ( uint16_t ) startHandle,
28
+ ( uint16_t ) endHandle
29
29
};
30
30
uint32_t rc = sd_ble_gattc_characteristics_discover (connectionHandle, &handleRange);
31
31
ble_error_t err = BLE_ERROR_NONE;
@@ -170,8 +170,8 @@ nRF5xServiceDiscovery::progressCharacteristicDiscovery(void)
170
170
171
171
if (startHandle < endHandle) {
172
172
ble_gattc_handle_range_t handleRange = {
173
- . start_handle = startHandle,
174
- . end_handle = endHandle
173
+ ( uint16_t ) startHandle,
174
+ ( uint16_t ) endHandle
175
175
};
176
176
if (sd_ble_gattc_characteristics_discover (connHandle, &handleRange) != NRF_SUCCESS) {
177
177
terminateCharacteristicDiscovery (BLE_ERROR_UNSPECIFIED);
@@ -288,8 +288,8 @@ nRF5xServiceDiscovery::processDiscoverUUIDResponse(const ble_gattc_evt_t *p_gatt
288
288
if (state == DISCOVER_SERVICE_UUIDS) {
289
289
if ((response->count == 1 ) && (response->value_len == UUID::LENGTH_OF_LONG_UUID)) {
290
290
UUID::LongUUIDBytes_t uuid;
291
-
292
- #if (NRF_SD_BLE_API_VERSION >= 3)
291
+
292
+ #if (NRF_SD_BLE_API_VERSION >= 3)
293
293
ble_gattc_handle_value_t iter;
294
294
memset (&iter, 0 , sizeof (ble_gattc_handle_value_t ));
295
295
(void ) sd_ble_gattc_evt_char_val_by_uuid_read_rsp_iter (const_cast <ble_gattc_evt_t *>(p_gattc_evt), &iter);
@@ -308,7 +308,7 @@ nRF5xServiceDiscovery::processDiscoverUUIDResponse(const ble_gattc_evt_t *p_gatt
308
308
} else if (state == DISCOVER_CHARACTERISTIC_UUIDS) {
309
309
if ((response->count == 1 ) && (response->value_len == UUID::LENGTH_OF_LONG_UUID + 1 /* props */ + 2 /* value handle */ )) {
310
310
UUID::LongUUIDBytes_t uuid;
311
-
311
+
312
312
#if (NRF_SD_BLE_API_VERSION >= 3)
313
313
ble_gattc_handle_value_t iter;
314
314
memset (&iter, 0 , sizeof (ble_gattc_handle_value_t ));
@@ -317,7 +317,7 @@ nRF5xServiceDiscovery::processDiscoverUUIDResponse(const ble_gattc_evt_t *p_gatt
317
317
#else
318
318
memcpy (uuid, &(response->handle_value [0 ].p_value [3 ]), UUID::LENGTH_OF_LONG_UUID);
319
319
#endif
320
-
320
+
321
321
unsigned charIndex = charUUIDDiscoveryQueue.dequeue ();
322
322
characteristics[charIndex].setupLongUUID (uuid, UUID::LSB);
323
323
0 commit comments