apps/peripheral: Fix not saving conn_handle after connection

Even though conn_handle is defined and later used in
connection params update request event callback, it was
never initialized with a proper value.
This commit is contained in:
Michal Gorecki
2022-08-31 17:22:04 +02:00
committed by Szymon Janc
parent ca3e598270
commit 3de15c9615
+1
View File
@@ -50,6 +50,7 @@ adv_event(struct ble_gap_event *event, void *arg)
MODLOG_DFLT(INFO, "connection %s; status=%d\n",
event->connect.status == 0 ? "established" : "failed",
event->connect.status);
conn_handle = event->connect.conn_handle;
break;
case BLE_GAP_EVENT_CONN_UPDATE_REQ:
/* connected device requests update of connection parameters,