test
Fork of nRF51822 by
Diff: btle/btle_discovery.h
- Revision:
- 302:507e99065379
- Parent:
- 301:59e7404a4ea3
- Child:
- 303:697d18859583
--- 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; }