/
11111
1
Fork of nRF51822 by
Revision 380:2261d409921e, committed 2015-07-06
- Comitter:
- rgrover1
- Date:
- Mon Jul 06 10:21:02 2015 +0100
- Parent:
- 379:da2b85a3dc5c
- Child:
- 381:c997e9717fb7
- Commit message:
- Synchronized with git rev d854663c
Author: Rohit Grover
add consts at a couple of places.
Changed in this revision
nRF51GattServer.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/nRF51GattServer.h Mon Jul 06 10:21:02 2015 +0100 +++ b/nRF51GattServer.h Mon Jul 06 10:21:02 2015 +0100 @@ -52,7 +52,7 @@ * @param valueHandle the value handle to be resolved. * @return characteristic index if a resolution is found, else -1. */ - int resolveValueHandleToCharIndex(GattAttribute::Handle_t valueHandle) { + int resolveValueHandleToCharIndex(GattAttribute::Handle_t valueHandle) const { unsigned charIndex; for (charIndex = 0; charIndex < characteristicCount; charIndex++) { if (nrfCharacteristicHandles[charIndex].value_handle == valueHandle) { @@ -68,7 +68,7 @@ * @param cccdHandle the CCCD handle to be resolved. * @return characteristic index if a resolution is found, else -1. */ - int resolveCCCDHandleToCharIndex(GattAttribute::Handle_t cccdHandle) { + int resolveCCCDHandleToCharIndex(GattAttribute::Handle_t cccdHandle) const { unsigned charIndex; for (charIndex = 0; charIndex < characteristicCount; charIndex++) { if (nrfCharacteristicHandles[charIndex].cccd_handle == cccdHandle) {