test
Fork of nRF51822 by
Diff: btle/btle_discovery.h
- Revision:
- 295:5566c7b83bb5
- Parent:
- 293:cd86acfe41be
- Child:
- 299:19064275c0e0
--- a/btle/btle_discovery.h Fri Jun 19 15:55:28 2015 +0100 +++ b/btle/btle_discovery.h Fri Jun 19 15:55:28 2015 +0100 @@ -131,6 +131,9 @@ void append(int serviceIndex) { serviceIndices[numIndices++] = serviceIndex; } + unsigned getFirst(void) const { + return serviceIndices[0]; + } void removeFirst(void) { numIndices--; for (unsigned index = 0; index < numIndices; index++) {