No changes
Fork of nRF51822 by
Diff: btle/btle_discovery.h
- Revision:
- 279:6e5e79f1fb61
- Parent:
- 263:d5da37e9a93b
- Child:
- 280:cbaa4cb83548
diff -r 26e3f0ef1e14 -r 6e5e79f1fb61 btle/btle_discovery.h --- a/btle/btle_discovery.h Fri Jun 19 15:55:26 2015 +0100 +++ b/btle/btle_discovery.h Fri Jun 19 15:55:26 2015 +0100 @@ -49,6 +49,10 @@ serviceIndex++; /* Progress service index to keep discovery alive. */ } + bool isActive(void) const { + return (sDiscoveryActive || cDiscoveryActive); + } + private: void resetDiscoveredServices(void) { numServices = 0;