Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of nRF51822 by
Diff: btle/btle_gattc.cpp
- Revision:
- 235:10bb73f9d15d
- Parent:
- 234:80732a210425
- Child:
- 236:631719c927ed
diff -r 80732a210425 -r 10bb73f9d15d btle/btle_gattc.cpp
--- a/btle/btle_gattc.cpp Fri Jun 19 15:55:20 2015 +0100
+++ b/btle/btle_gattc.cpp Fri Jun 19 15:55:20 2015 +0100
@@ -235,10 +235,9 @@
switch (p_ble_evt->header.evt_id) {
case BLE_GATTC_EVT_PRIM_SRVC_DISC_RSP:
switch (p_ble_evt->evt.gattc_evt.gatt_status) {
- case BLE_GATT_STATUS_SUCCESS: {
+ case BLE_GATT_STATUS_SUCCESS:
discoveryStatus.setupDiscoveredServices(&p_ble_evt->evt.gattc_evt.params.prim_srvc_disc_rsp);
break;
- }
case BLE_GATT_STATUS_ATTERR_ATTRIBUTE_NOT_FOUND:
default:
@@ -247,12 +246,11 @@
}
break;
- case BLE_GATTC_EVT_CHAR_DISC_RSP: {
+ case BLE_GATTC_EVT_CHAR_DISC_RSP:
switch (p_ble_evt->evt.gattc_evt.gatt_status) {
- case BLE_GATT_STATUS_SUCCESS: {
+ case BLE_GATT_STATUS_SUCCESS:
discoveryStatus.setupDiscoveredCharacteristics(&p_ble_evt->evt.gattc_evt.params.char_disc_rsp);
break;
- }
case BLE_GATT_STATUS_ATTERR_ATTRIBUTE_NOT_FOUND:
default:
@@ -260,7 +258,6 @@
break;
}
break;
- }
}
discoveryStatus.progressCharacteristicDiscovery();
