Skip to content

Commit 980c798

Browse files
Allocating memory for bleEvent.eventData pointer
1 parent d7abcbf commit 980c798

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/platform/silabs/rs911x/wfx_sl_ble_init.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ void SilabsBleWrapper::rsi_ble_add_char_val_att(void * serv_handler, uint16_t ha
294294

295295
uint32_t SilabsBleWrapper::rsi_ble_add_matter_service(void)
296296
{
297+
bleEvent.eventData = new SilabsBleWrapper::sl_wfx_msg_t();
297298
uuid_t custom_service = { RSI_BLE_MATTER_CUSTOM_SERVICE_UUID };
298299
custom_service.size = RSI_BLE_MATTER_CUSTOM_SERVICE_SIZE;
299300
custom_service.val.val16 = RSI_BLE_MATTER_CUSTOM_SERVICE_VALUE_16;

0 commit comments

Comments
 (0)