Skip to content

Commit

Permalink
Set timing fields of aci_stat for ACI_EVT_CONNECTED in lib_aci_event_…
Browse files Browse the repository at this point in the history
…get(...).
  • Loading branch information
george-hawkins authored and Skjerve committed Dec 12, 2014
1 parent 36c6584 commit 0e20758
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libraries/BLE/lib_aci.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0e20758

Please sign in to comment.