Просмотр исходного кода

component/bt : cleanup demo warnings

Tian Hao 9 лет назад
Родитель
Сommit
c277735e6e

+ 0 - 2
examples/14_gatt_server/main/component.mk

@@ -6,5 +6,3 @@
 # lib(subdirectory_name).a in the build directory. This behaviour is entirely configurable,
 # please read the ESP-IDF documents if you need to do this.
 #
-
-include $(IDF_PATH)/make/component_common.mk

+ 1 - 2
examples/14_gatt_server/main/gatts_demo.c

@@ -38,7 +38,6 @@
 #define TEST_DEVICE_NAME            "ESP_GATTS_DEMO"
 
 #define TEST_MANUFACTURER_DATA_LEN  17
-static uint16_t test_service_uuid = GATTS_SERVICE_UUID_TEST;
 static uint8_t test_service_uuid128[32] = {
     /* LSB <--------------------------------------------------------------------------------> MSB */
     //first uuid, 16bit, [12],[13] is the value
@@ -47,7 +46,7 @@ static uint8_t test_service_uuid128[32] = {
     0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00, 0xAB, 0xCD, 0xAB, 0xCD,
 };
 
-static uint8_t test_manufacturer[TEST_MANUFACTURER_DATA_LEN] =  {0x12, 0x23, 0x45, 0x56};
+//static uint8_t test_manufacturer[TEST_MANUFACTURER_DATA_LEN] =  {0x12, 0x23, 0x45, 0x56};
 static esp_ble_adv_data_t test_adv_data = {
     .set_scan_rsp = false,
     .include_name = true,