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.
Dependencies: nrf51-sdk
Fork of nRF51822 by
Diff: btle/btle_discovery.cpp
- Revision:
- 325:eb6914dca928
- Parent:
- 323:7a9c8fa8042d
- Child:
- 330:0a8ebc25b57c
--- a/btle/btle_discovery.cpp Fri Jun 19 15:55:31 2015 +0100
+++ b/btle/btle_discovery.cpp Fri Jun 19 15:55:31 2015 +0100
@@ -249,13 +249,13 @@
if (response->chars[charIndex].uuid.type == BLE_UUID_TYPE_UNKNOWN) {
charUUIDDiscoveryQueue.enqueue(charIndex);
characteristics[charIndex].setup(connHandle,
- *(const uint8_t *)(&response->chars[charIndex].char_props),
+ response->chars[charIndex].char_props,
response->chars[charIndex].handle_decl,
response->chars[charIndex].handle_value);
} else {
characteristics[charIndex].setup(connHandle,
response->chars[charIndex].uuid.uuid,
- *(const uint8_t *)(&response->chars[charIndex].char_props),
+ response->chars[charIndex].char_props,
response->chars[charIndex].handle_decl,
response->chars[charIndex].handle_value);
}
