Skip to content

Commit 80c3a84

Browse files
authored
Merge pull request #293 from Montvydas/bugfix-ota-dfu-stuck
Set the default max MTU size within the DFU transport to 23
2 parents 2107d4e + 5f95de1 commit 80c3a84

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/sdk11/components/libraries/bootloader_dfu/dfu_transport_ble.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838

3939
#define BLEGAP_EVENT_LENGTH 6
40-
#define BLEGATT_ATT_MTU_MAX 247
40+
#define BLEGATT_ATT_MTU_MAX 23
4141
enum { BLE_CONN_CFG_HIGH_BANDWIDTH = 1 };
4242

4343
#define DFU_REV_MAJOR 0x00 /** DFU Major revision number to be exposed. */

src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ extern void tusb_hal_nrf_power_event(uint32_t event);
131131

132132
// These value must be the same with one in dfu_transport_ble.c
133133
#define BLEGAP_EVENT_LENGTH 6
134-
#define BLEGATT_ATT_MTU_MAX 247
134+
#define BLEGATT_ATT_MTU_MAX 23
135135
enum { BLE_CONN_CFG_HIGH_BANDWIDTH = 1 };
136136

137137
//--------------------------------------------------------------------+

0 commit comments

Comments
 (0)