test

Dependencies:   nrf51-sdk

Dependents:   microbit-dal

Fork of nRF51822 by Lancaster University

Revision:
336:6ac9e1b34de0
Parent:
335:601d65634447
Child:
337:3d8b3bfe22e1
--- a/btle/btle_discovery.cpp	Fri Jun 19 15:55:33 2015 +0100
+++ b/btle/btle_discovery.cpp	Fri Jun 19 15:55:33 2015 +0100
@@ -56,11 +56,11 @@
 
         case BLE_GATTC_EVT_READ_RSP:
             if (DiscoveredCharacteristic::onDataReadCallback != NULL) {
-                GattCharacteristicReadCBParams response = {
-                    .charHandle = p_ble_evt->evt.gattc_evt.params.read_rsp.handle,
-                    .offset     = p_ble_evt->evt.gattc_evt.params.read_rsp.offset,
-                    .len        = p_ble_evt->evt.gattc_evt.params.read_rsp.len,
-                    .data       = p_ble_evt->evt.gattc_evt.params.read_rsp.data,
+                GattReadCallbackParams response = {
+                    .handle = p_ble_evt->evt.gattc_evt.params.read_rsp.handle,
+                    .offset = p_ble_evt->evt.gattc_evt.params.read_rsp.offset,
+                    .len    = p_ble_evt->evt.gattc_evt.params.read_rsp.len,
+                    .data   = p_ble_evt->evt.gattc_evt.params.read_rsp.data,
                 };
                 DiscoveredCharacteristic::onDataReadCallback(&response);
             }