File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
libraries/Bluefruit52Lib/src Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -134,22 +134,13 @@ void BLEPeriph::setDisconnectCallback( ble_disconnect_callback_t fp )
134
134
135
135
void BLEPeriph::_eventHandler (ble_evt_t * evt)
136
136
{
137
- uint16_t const conn_hdl = evt->evt .common_evt .conn_handle ;
137
+ // uint16_t const conn_hdl = evt->evt.common_evt.conn_handle;
138
138
// BLEConnection* conn = Bluefruit.Connection(conn_hdl);
139
139
140
140
switch ( evt->header .evt_id )
141
141
{
142
142
case BLE_GAP_EVT_CONNECTED:
143
- {
144
- ble_gap_evt_connected_t * para = &evt->evt .gap_evt .params .connected ;
145
-
146
- // Connection interval set by Central is out of preferred range
147
- // Try to negotiate with Central using our preferred values
148
- if ( !is_within (_ppcp.min_conn_interval , para->conn_params .min_conn_interval , _ppcp.max_conn_interval ) )
149
- {
150
- VERIFY_STATUS ( sd_ble_gap_conn_param_update (conn_hdl, &_ppcp), );
151
- }
152
- }
143
+
153
144
break ;
154
145
155
146
case BLE_GAP_EVT_DISCONNECTED:
You can’t perform that action at this time.
0 commit comments