nrf5/sdk: Adding compiler guard around exchange MTU request event.
As s110 is not having this event or function call to answer on a MTU exchange request, this is excluded for all other version than s132 for now.
This commit is contained in:
parent
c1ffac9998
commit
216c97ff9a
|
@ -686,10 +686,12 @@ static void ble_evt_handler(ble_evt_t * p_ble_evt) {
|
|||
(void)sd_ble_gatts_sys_attr_set(p_ble_evt->evt.gatts_evt.conn_handle, NULL, 0, 0);
|
||||
break;
|
||||
|
||||
#if (BLUETOOTH_SD == 132)
|
||||
case BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST:
|
||||
BLE_DRIVER_LOG("GATTS EVT EXCHANGE MTU REQUEST\n");
|
||||
(void)sd_ble_gatts_exchange_mtu_reply(p_ble_evt->evt.gatts_evt.conn_handle, 23); // MAX MTU size
|
||||
break;
|
||||
#endif
|
||||
|
||||
case BLE_EVT_TX_COMPLETE:
|
||||
BLE_DRIVER_LOG("BLE EVT TX COMPLETE\n");
|
||||
|
|
Loading…
Reference in New Issue