Microbug / nRF51822

Fork of nRF51822 by Nordic Semiconductor

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Wed May 13 08:48:54 2015 +0100
Parent:
161:6712855a0107
Child:
163:65f11741e3d4
Commit message:
Synchronized with git rev 09570bd6
Author: Rohit Grover
nRF51GattServer::hwCallback: use handle_value instead of characteristic index at a couple of places.

Changed in this revision

nRF51GattServer.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/nRF51GattServer.cpp	Fri May 08 15:33:59 2015 +0100
+++ b/nRF51GattServer.cpp	Wed May 13 08:48:54 2015 +0100
@@ -261,7 +261,7 @@
 /**************************************************************************/
 void nRF51GattServer::hwCallback(ble_evt_t *p_ble_evt)
 {
-    uint16_t                       handle_value;
+    GattAttribute::Handle_t        handle_value;
     GattServerEvents::gattEvent_t  eventType;
     const ble_gatts_evt_t         *gattsEventP = &p_ble_evt->evt.gatts_evt;
 
@@ -285,7 +285,7 @@
                         eventType = GattServerEvents::GATT_EVENT_UPDATES_DISABLED;
                     }
 
-                    handleEvent(eventType, i);
+                    handleEvent(eventType, handle_value);
                     return;
                 }
             }
@@ -410,7 +410,7 @@
                 }
 
                 default:
-                    handleEvent(eventType, i);
+                    handleEvent(eventType, handle_value);
                     break;
             }
         }