From b1f1bb1389809e07c8b315aa9891d58e79c247e9 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Wed, 23 Jan 2019 21:07:23 -0500 Subject: [PATCH] support BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST, sent by newer devices --- ports/nrf/common-hal/bleio/Peripheral.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ports/nrf/common-hal/bleio/Peripheral.c b/ports/nrf/common-hal/bleio/Peripheral.c index 7108259607..9dedc33e9b 100644 --- a/ports/nrf/common-hal/bleio/Peripheral.c +++ b/ports/nrf/common-hal/bleio/Peripheral.c @@ -266,6 +266,10 @@ STATIC void peripheral_on_ble_evt(ble_evt_t *ble_evt, void *self_in) { break; } + case BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST: + sd_ble_gap_data_length_update(self->conn_handle, NULL, NULL); + break; + case BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST: { sd_ble_gatts_exchange_mtu_reply(self->conn_handle, BLE_GATT_ATT_MTU_DEFAULT); break;