From 0e20758379818b395293513a11eff50a26e6a122 Mon Sep 17 00:00:00 2001 From: George Hawkins Date: Fri, 7 Nov 2014 17:25:42 +0100 Subject: [PATCH] Set timing fields of aci_stat for ACI_EVT_CONNECTED in lib_aci_event_get(...). --- libraries/BLE/lib_aci.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libraries/BLE/lib_aci.cpp b/libraries/BLE/lib_aci.cpp index 64e4d5c..8332e48 100644 --- a/libraries/BLE/lib_aci.cpp +++ b/libraries/BLE/lib_aci.cpp @@ -611,6 +611,12 @@ bool lib_aci_event_get(aci_state_t *aci_stat, hal_aci_evt_t *p_aci_evt_data) aci_stat->supervision_timeout = aci_evt->params.timing.conn_rf_timeout; break; + case ACI_EVT_CONNECTED: + aci_stat->connection_interval = aci_evt->params.connected.conn_rf_interval; + aci_stat->slave_latency = aci_evt->params.connected.conn_slave_rf_latency; + aci_stat->supervision_timeout = aci_evt->params.connected.conn_rf_timeout; + break; + default: /* Need default case to avoid compiler warnings about missing enum * values on some platforms.