Skip to content

Commit

Permalink
nrf/drivers/bluetooth: Fix variable initialisation error with older gcc.
Browse files Browse the repository at this point in the history
Without this change, arm-none-eabi-gcc version 4.9.3 (at least) would give
a "missing braces around initializer" error.
  • Loading branch information
ccccmagicboy authored and dpgeorge committed Feb 16, 2020
1 parent 4af79e7 commit 4f3e5ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/nrf/drivers/bluetooth/ble_drv.c
Expand Up @@ -116,7 +116,7 @@ static mp_obj_t mp_gattc_char_data_observer;
static uint8_t m_adv_handle = BLE_GAP_ADV_SET_HANDLE_NOT_SET;
static uint8_t m_scan_buffer[BLE_GAP_SCAN_BUFFER_MIN];

nrf_nvic_state_t nrf_nvic_state = {0};
nrf_nvic_state_t nrf_nvic_state = {{0}, 0};
#endif

#if (BLUETOOTH_SD == 110)
Expand Down

0 comments on commit 4f3e5ea

Please sign in to comment.