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

Commit 2ee416a

Browse files
authored
Fix test_util_adapter_wrapper to use provided MTU in SD > 3 (#184)
1 parent 4ee5bf2 commit 2ee416a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/util/src/test_util_adapter_wrapper.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,9 +903,10 @@ void AdapterWrapper::setupScratchpad(const uint16_t mtu)
903903
scratchpad.common_opt.conn_bw.conn_bw.conn_bw_rx = BLE_CONN_BW_HIGH;
904904
scratchpad.common_opt.conn_bw.conn_bw.conn_bw_tx = BLE_CONN_BW_HIGH;
905905
scratchpad.opt.common_opt = scratchpad.common_opt;
906-
scratchpad.mtu = mtu == 0 ? DEFAULT_MTU_SIZE : mtu;
907906
#endif
908907

908+
scratchpad.mtu = mtu == 0 ? DEFAULT_MTU_SIZE : mtu;
909+
909910
#if NRF_SD_BLE_API == 3
910911
scratchpad.ble_enable_params.gatt_enable_params.att_mtu = scratchpad.mtu;
911912
#endif

0 commit comments

Comments
 (0)