Repository: incubator-mynewt-core Updated Branches: refs/heads/develop 8b510e973 -> 57a5bb602
apps/blesplit: Fix build after ble_uuid and ble_addr changes Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/605955ca Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/605955ca Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/605955ca Branch: refs/heads/develop Commit: 605955ca06656d65fe64ba242194513602a299d2 Parents: 0a79ee0 Author: Andrzej Kaczmarek <[email protected]> Authored: Thu Feb 2 14:44:12 2017 +0100 Committer: Andrzej Kaczmarek <[email protected]> Committed: Fri Feb 3 14:39:06 2017 +0100 ---------------------------------------------------------------------- apps/blesplit/src/main.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/605955ca/apps/blesplit/src/main.c ---------------------------------------------------------------------- diff --git a/apps/blesplit/src/main.c b/apps/blesplit/src/main.c index 054e1ae..ade8019 100755 --- a/apps/blesplit/src/main.c +++ b/apps/blesplit/src/main.c @@ -51,17 +51,17 @@ static void blesplit_print_conn_desc(struct ble_gap_conn_desc *desc) { BLESPLIT_LOG(INFO, "handle=%d our_ota_addr_type=%d our_ota_addr=", - desc->conn_handle, desc->our_ota_addr_type); - print_addr(desc->our_ota_addr); + desc->conn_handle, desc->our_ota_addr.type); + print_addr(desc->our_ota_addr.val); BLESPLIT_LOG(INFO, " our_id_addr_type=%d our_id_addr=", - desc->our_id_addr_type); - print_addr(desc->our_id_addr); + desc->our_id_addr.type); + print_addr(desc->our_id_addr.val); BLESPLIT_LOG(INFO, " peer_ota_addr_type=%d peer_ota_addr=", - desc->peer_ota_addr_type); - print_addr(desc->peer_ota_addr); + desc->peer_ota_addr.type); + print_addr(desc->peer_ota_addr.val); BLESPLIT_LOG(INFO, " peer_id_addr_type=%d peer_id_addr=", - desc->peer_id_addr_type); - print_addr(desc->peer_id_addr); + desc->peer_id_addr.type); + print_addr(desc->peer_id_addr.val); BLESPLIT_LOG(INFO, " conn_itvl=%d conn_latency=%d supervision_timeout=%d " "encrypted=%d authenticated=%d bonded=%d\n", desc->conn_itvl, desc->conn_latency, @@ -113,7 +113,9 @@ blesplit_advertise(void) fields.name_len = strlen(name); fields.name_is_complete = 1; - fields.uuids16 = (uint16_t[]){ GATT_SVR_SVC_ALERT_UUID }; + fields.uuids16 = (ble_uuid16_t[]) { + BLE_UUID16_INIT(GATT_SVR_SVC_ALERT_UUID), + }; fields.num_uuids16 = 1; fields.uuids16_is_complete = 1;
