Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Fix test_util_adapter_wrapper to use provided MTU in SD > 3 (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenr authored Dec 20, 2018
1 parent 4ee5bf2 commit 2ee416a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/util/src/test_util_adapter_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -903,9 +903,10 @@ void AdapterWrapper::setupScratchpad(const uint16_t mtu)
scratchpad.common_opt.conn_bw.conn_bw.conn_bw_rx = BLE_CONN_BW_HIGH;
scratchpad.common_opt.conn_bw.conn_bw.conn_bw_tx = BLE_CONN_BW_HIGH;
scratchpad.opt.common_opt = scratchpad.common_opt;
scratchpad.mtu = mtu == 0 ? DEFAULT_MTU_SIZE : mtu;
#endif

scratchpad.mtu = mtu == 0 ? DEFAULT_MTU_SIZE : mtu;

#if NRF_SD_BLE_API == 3
scratchpad.ble_enable_params.gatt_enable_params.att_mtu = scratchpad.mtu;
#endif
Expand Down

0 comments on commit 2ee416a

Please sign in to comment.