nrf5/drivers/bluetooth: Make printf in 'ble_drv_service_add' function part of debug log.

This commit is contained in:
Glenn Ruben Bakke 2017-06-05 18:56:11 +02:00 committed by Daniel Tralamazza
parent e5802fd9f8
commit 4a52f8401b

View File

@ -271,14 +271,13 @@ bool ble_drv_service_add(ubluepy_service_obj_t * p_service_obj) {
"Can not add Service.")); "Can not add Service."));
} }
} else if (p_service_obj->p_uuid->type == BLE_UUID_TYPE_BLE) { } else if (p_service_obj->p_uuid->type == BLE_UUID_TYPE_BLE) {
printf("adding service\n"); BLE_DRIVER_LOG("adding service\n");
ble_uuid_t uuid; ble_uuid_t uuid;
uuid.type = p_service_obj->p_uuid->type; uuid.type = p_service_obj->p_uuid->type;
uuid.uuid = p_service_obj->p_uuid->value[0]; uuid.uuid = p_service_obj->p_uuid->value[0];
uuid.uuid += p_service_obj->p_uuid->value[1] << 8; uuid.uuid += p_service_obj->p_uuid->value[1] << 8;
printf("adding service\n");
if (sd_ble_gatts_service_add(p_service_obj->type, if (sd_ble_gatts_service_add(p_service_obj->type,
&uuid, &uuid,
&p_service_obj->handle) != 0) { &p_service_obj->handle) != 0) {