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.
Dependents: microbit-dal microbit-dal microbit-ble-open microbit-dal ... more
Fork of BLE_API by
Revision 498:f3cd1e9e1ebc, committed 2015-06-19
- Comitter:
- rgrover1
- Date:
- Fri Jun 19 15:52:03 2015 +0100
- Parent:
- 497:926d444599e8
- Child:
- 499:db9bc083f91e
- Commit message:
- Synchronized with git rev a7cf0629
Author: Rohit Grover
add a sanity check to DiscoveredCharacteristic::read().
Changed in this revision
| common/DiscoveredCharacteristic.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/common/DiscoveredCharacteristic.cpp Fri Jun 19 15:52:03 2015 +0100
+++ b/common/DiscoveredCharacteristic.cpp Fri Jun 19 15:52:03 2015 +0100
@@ -37,6 +37,10 @@
return BLE_ERROR_OPERATION_NOT_PERMITTED;
}
+ if (!gattc) {
+ return BLE_ERROR_INVALID_STATE;
+ }
+
return gattc->read(connHandle, valueHandle, offset);
}
