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 X_NUCLEO_IDB0XA1 by
Diff: source/platform/btle.cpp
- Revision:
- 202:caf4864292c1
- Parent:
- 140:0cd922dca83c
- Child:
- 210:08c4c85ca679
diff -r a9bc2e8b01d7 -r caf4864292c1 source/platform/btle.cpp
--- a/source/platform/btle.cpp Thu Dec 03 10:24:19 2015 +0100
+++ b/source/platform/btle.cpp Thu Dec 03 10:25:12 2015 +0100
@@ -285,7 +285,7 @@
//BlueNRGGattServer::getInstance().handleEvent(GattServerEvents::GATT_EVENT_DATA_WRITTEN, evt->attr_handle);
//Write the actual Data to the Attr Handle? (uint8_1[])att_data contains the data
- if ((p_char->getValueAttribute().getValuePtr() != NULL) && (p_char->getValueAttribute().getInitialLength() > 0)) {
+ if ((p_char->getValueAttribute().getValuePtr() != NULL) && (p_char->getValueAttribute().getLength() > 0)) {
BlueNRGGattServer::getInstance().write(p_char->getValueAttribute().getHandle(), (uint8_t*)att_data, data_length, false);
}
}
