test

Dependents:   BLE_HeartRate_IDB0XA1_EPUDEE_Avril2018

Fork of X_NUCLEO_IDB0XA1 by ST

Branch:
72a03e94578ba288a289bed81955d4d04ab6702f
Revision:
269:cd037b36a62b
Parent:
267:cd7870e466b3
Child:
278:a5209d8cfd61
diff -r c0a1e03c5736 -r cd037b36a62b source/BlueNRGGattServer.cpp
--- a/source/BlueNRGGattServer.cpp	Thu Sep 15 10:51:31 2016 +0100
+++ b/source/BlueNRGGattServer.cpp	Thu Sep 15 10:51:31 2016 +0100
@@ -101,6 +101,8 @@
         COPY_UUID_128(primary_base_uuid, base_uuid[15],base_uuid[14],primary_short_uuid[1],primary_short_uuid[0],base_uuid[11],base_uuid[10],base_uuid[9],base_uuid[8],base_uuid[7],base_uuid[6],base_uuid[5],base_uuid[4],base_uuid[3],base_uuid[2],base_uuid[1],base_uuid[0]);
     }
 
+    ret = BLE_STATUS_SUCCESS;
+
     if(type==UUID::UUID_TYPE_SHORT) {
         ret = aci_gatt_add_serv(UUID_TYPE_16,
                                 primary_short_uuid,
@@ -109,8 +111,7 @@
                                 &servHandle);
         PRINTF("aci_gatt_add_serv UUID_TYPE_SHORT ret=%d\n\r", ret);
 
-    }
-    else if(type==UUID::UUID_TYPE_LONG) {
+    } else if(type==UUID::UUID_TYPE_LONG) {
         ret = aci_gatt_add_serv(UUID_TYPE_128,
                                 primary_base_uuid,
                                 PRIMARY_SERVICE,