8000 nrf5/sdk: Adding compiler guard around exchange MTU request event. · boneskull/circuitpython@216c97f · GitHub
[go: up one dir, main page]

Skip to content

Commit 216c97f

Browse files
committed
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.
1 parent c1ffac9 commit 216c97f

File tree

1 file changed

+2
-0
lines chan 8000 ged

1 file changed

+2
-0
lines changed

nrf5/sdk/ble_drv.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,10 +686,12 @@ static void ble_evt_handler(ble_evt_t * p_ble_evt) {
686686
(void)sd_ble_gatts_sys_attr_set(p_ble_evt->evt.gatts_evt.conn_handle, NULL, 0, 0);
687687
break;
688688

689+
#if (BLUETOOTH_SD == 132)
689690
case BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST:
690691
BLE_DRIVER_LOG("GATTS EVT EXCHANGE MTU REQUEST\n");
691692
(void)sd_ble_gatts_exchange_mtu_reply(p_ble_evt->evt.gatts_evt.conn_handle, 23); // MAX MTU size
< 5273 /td>
692693
break;
694+
#endif
693695

694696
case BLE_EVT_TX_COMPLETE:
695697
BLE_DRIVER_LOG("BLE EVT TX COMPLETE\n");

0 commit comments

Comments
 (0)
0