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: BLE_ANCS_SDAPI BLE_temperature BLE_HeartRate writable_gatt ... more
Diff: btle/btle_discovery.h
- Revision:
- 304:8677dcdb218d
- Parent:
- 303:697d18859583
- Child:
- 305:293634834813
diff -r 697d18859583 -r 8677dcdb218d 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
@@ -124,8 +124,8 @@
public:
void reset(void) {
numIndices = 0;
- for (unsigned index = 0; index < BLE_DB_DISCOVERY_MAX_SRV; index++) {
- serviceIndices[index] = INVALID_SERVICE_INDEX;
+ for (unsigned i = 0; i < BLE_DB_DISCOVERY_MAX_SRV; i++) {
+ serviceIndices[i] = INVALID_INDEX;
}
}
void enqueue(int serviceIndex) {
@@ -133,7 +133,7 @@
}
int dequeue(void) {
if (numIndices == 0) {
- return INVALID_SERVICE_INDEX;
+ return INVALID_INDEX;
}
unsigned valueToReturn = serviceIndices[0];
@@ -157,7 +157,7 @@
void triggerFirst(void);
private:
- static const int INVALID_SERVICE_INDEX = -1;
+ static const int INVALID_INDEX = -1;
private:
size_t numIndices;

