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
Dependents: microbit-dal microbit-ble-open microbit-dal-eddystone microbit-dal-ble-accelerometer-example ... more
Diff: btle/btle_discovery.h
- Revision:
- 302:507e99065379
- Parent:
- 301:59e7404a4ea3
- Child:
- 303:697d18859583
diff -r 59e7404a4ea3 -r 507e99065379 btle/btle_discovery.h
--- a/btle/btle_discovery.h Fri Jun 19 15:55:29 2015 +0100
+++ b/btle/btle_discovery.h Fri Jun 19 15:55:29 2015 +0100
@@ -131,9 +131,6 @@
void enqueue(int serviceIndex) {
serviceIndices[numIndices++] = serviceIndex;
}
- unsigned getFirst(void) const {
- return serviceIndices[0];
- }
int dequeue(void) {
if (numIndices == 0) {
return INVALID_SERVICE_INDEX;
@@ -147,6 +144,9 @@
return valueToReturn;
}
+ unsigned getFirst(void) const {
+ return serviceIndices[0];
+ }
size_t getCount(void) const {
return numIndices;
}