Skip to content

Commit

Permalink
Fixing firmware upgrade issues via Bluetooth (#8)
Browse files Browse the repository at this point in the history
* the accurate length of the last data packet sent.

* reduce NRF_SDH_BLE_GAP_EVENT_LENGTH value

* bump version to 1.4.2
  • Loading branch information
lihuanhuan authored Nov 27, 2023
1 parent be8c4aa commit f32dc57
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/firmware_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#define MANUFACTURER_ID 0x55AA55AA55 /**< DUMMY Manufacturer ID. Will be passed to Device Information Service. You shall use the ID for your Company*/
#define ORG_UNIQUE_ID 0xEEBBEE /**< DUMMY Organisation Unique ID. Will be passed to Device Information Service. You shall use the Organisation Unique ID relevant for your Company */
#define HW_REVISION "1.0.0"
#define FW_REVISION "1.4.1"
#define FW_REVISION "1.4.2"
#define SW_REVISION "s132_nrf52_7.0.1"

#endif //FIRMWARE_CONFIG
2 changes: 1 addition & 1 deletion app/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,7 @@ static void nus_data_handler(ble_nus_evt_t * p_evt)
if(data_recived_len-pad > msg_len)
{
rcv_head_flag = DATA_INIT;
//data_recived_len = msg_len + (msg_len+62)/63;
data_recived_len = msg_len + (msg_len+62)/63;
msg_len = 0;
}
else
Expand Down
2 changes: 1 addition & 1 deletion app/sdk_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -11370,7 +11370,7 @@
// <i> The time set aside for this connection on every connection interval in 1.25 ms units.

#ifndef NRF_SDH_BLE_GAP_EVENT_LENGTH
#define NRF_SDH_BLE_GAP_EVENT_LENGTH 6
#define NRF_SDH_BLE_GAP_EVENT_LENGTH 5
#endif

// <o> NRF_SDH_BLE_GATT_MAX_MTU_SIZE - Static maximum MTU size.
Expand Down

0 comments on commit f32dc57

Please sign in to comment.