From 4f3e5ea9343ff844bb7ce5df8ed51e11be23f1ba Mon Sep 17 00:00:00 2001 From: cccc Date: Fri, 14 Feb 2020 14:23:11 +0800 Subject: [PATCH] nrf/drivers/bluetooth: Fix variable initialisation error with older gcc. Without this change, arm-none-eabi-gcc version 4.9.3 (at least) would give a "missing braces around initializer" error. --- ports/nrf/drivers/bluetooth/ble_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/nrf/drivers/bluetooth/ble_drv.c b/ports/nrf/drivers/bluetooth/ble_drv.c index 16b3898187..07f3b89aa5 100644 --- a/ports/nrf/drivers/bluetooth/ble_drv.c +++ b/ports/nrf/drivers/bluetooth/ble_drv.c @@ -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)