Merge pull request #211 from DuMaM/update_for_gcc11

GCC 11 Build fixes
This commit is contained in:
Ha Thach authored and GitHub committed 2021-07-05 13:22:11 +07:00
commit 80fca98113
2 files changed
+6 -4

No files matched your search

@@ -463,7 +463,7 @@ uint32_t ble_dfu_init(ble_dfu_t * p_dfu, ble_dfu_init_t * p_dfu_init)
p_dfu->conn_handle = BLE_CONN_HANDLE_INVALID;
ble_uuid_t service_uuid;
ble_uuid_t service_uuid = {0};
uint32_t err_code;
const ble_uuid128_t base_uuid128 =
+5 -3
View File
@@ -414,14 +414,16 @@ uint32_t proc_ble(void)
__ALIGN(4) uint8_t ev_buf[ BLE_EVT_LEN_MAX(BLEGATT_ATT_MTU_MAX) ];
uint16_t ev_len = BLE_EVT_LEN_MAX(BLEGATT_ATT_MTU_MAX);
// Init header
ble_evt_t* evt = (ble_evt_t*) ev_buf;
evt->header.evt_id = BLE_EVT_INVALID;
// Get BLE Event
uint32_t err = sd_ble_evt_get(ev_buf, &ev_len);
// Handle valid event, ignore error
if( NRF_SUCCESS == err)
{
ble_evt_t* evt = (ble_evt_t*) ev_buf;
switch (evt->header.evt_id)
{
case BLE_GAP_EVT_CONNECTED:
@@ -448,7 +450,7 @@ uint32_t proc_ble(void)
// process SOC event from SD
uint32_t proc_soc(void)
{
uint32_t soc_evt;
uint32_t soc_evt = 0;
uint32_t err = sd_evt_get(&soc_evt);
if (NRF_SUCCESS == err)