You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2019/12/09 12:20:36 UTC

[mynewt-nimble] branch master updated: nimble/apps: Use the correct connection handle in BLE_GAP_EVENT_CONN_UPDATE event

This is an automated email from the ASF dual-hosted git repository.

andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


The following commit(s) were added to refs/heads/master by this push:
     new 6ecc870  nimble/apps: Use the correct connection handle in BLE_GAP_EVENT_CONN_UPDATE event
6ecc870 is described below

commit 6ecc870576155d2bbf17b2f32c6617e442edc712
Author: Hrishikesh Dhayagude <hr...@espressif.com>
AuthorDate: Mon Dec 9 14:56:13 2019 +0530

    nimble/apps: Use the correct connection handle in BLE_GAP_EVENT_CONN_UPDATE event
---
 apps/bleprph/src/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/bleprph/src/main.c b/apps/bleprph/src/main.c
index 2c47504..66f9bac 100644
--- a/apps/bleprph/src/main.c
+++ b/apps/bleprph/src/main.c
@@ -207,7 +207,7 @@ bleprph_gap_event(struct ble_gap_event *event, void *arg)
         /* The central has updated the connection parameters. */
         MODLOG_DFLT(INFO, "connection updated; status=%d ",
                     event->conn_update.status);
-        rc = ble_gap_conn_find(event->connect.conn_handle, &desc);
+        rc = ble_gap_conn_find(event->conn_update.conn_handle, &desc);
         assert(rc == 0);
         bleprph_print_conn_desc(&desc);
         MODLOG_DFLT(INFO, "\n");