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
Diff: common/DiscoveredCharacteristic.cpp
- Revision:
- 502:557c4a9276ae
- Parent:
- 501:ff6801633d2c
- Child:
- 504:817c6240e9d9
diff -r ff6801633d2c -r 557c4a9276ae common/DiscoveredCharacteristic.cpp
--- a/common/DiscoveredCharacteristic.cpp Fri Jun 19 15:52:03 2015 +0100
+++ b/common/DiscoveredCharacteristic.cpp Fri Jun 19 15:52:03 2015 +0100
@@ -40,5 +40,9 @@
return BLE_ERROR_OPERATION_NOT_PERMITTED;
}
+ if (!gattc) {
+ return BLE_ERROR_INVALID_STATE;
+ }
+
return gattc->write(GattClient::OP_WRITE_CMD, connHandle, length, value);
}
\ No newline at end of file
