mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-11 04:27:58 +00:00
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:
committed by
Szymon Janc
parent
ca3e598270
commit
3de15c9615
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user