bluetooth control motor

Dependents:   BLE_LED_IDB0XA1_demo MOTOR_BLE_V2 Motor_Ble_v1 Motor_Ble_v10223 ... more

Fork of X_NUCLEO_IDB0XA1 by ST

Files at this revision

API Documentation at this revision

Comitter:
Vincent Coubard
Date:
Thu Sep 15 10:51:31 2016 +0100
Branch:
72a03e94578ba288a289bed81955d4d04ab6702f
Parent:
268:c0a1e03c5736
Child:
270:ca649990a830
Commit message:
Sync with 72a03e94578ba288a289bed81955d4d04ab6702f

2016-07-13 15:00:32+02:00: Andrea Palmieri
Get rid of warnings

Signed-off-by: Andrea Palmieri <andrea.palmieri@st.com>

Changed in this revision

source/BlueNRGGattServer.cpp Show annotated file Show diff for this revision Revisions of this file
source/platform/btle.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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,
--- a/source/platform/btle.cpp	Thu Sep 15 10:51:31 2016 +0100
+++ b/source/platform/btle.cpp	Thu Sep 15 10:51:31 2016 +0100
@@ -545,7 +545,7 @@
                         uint8_t write_status = err_code == 0 ? 0 : 1;
 
                         // reply to the shield
-                        tBleStatus err = aci_gatt_write_response(
+                        aci_gatt_write_response(
                             write_req->conn_handle,
                             write_req->attr_handle,
                             write_status,