Skip to content

Commit

Permalink
Allocating memory for bleEvent.eventData pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
bhmanda-silabs committed Oct 21, 2024
1 parent d7abcbf commit 980c798
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/platform/silabs/rs911x/wfx_sl_ble_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ void SilabsBleWrapper::rsi_ble_add_char_val_att(void * serv_handler, uint16_t ha

uint32_t SilabsBleWrapper::rsi_ble_add_matter_service(void)
{
bleEvent.eventData = new SilabsBleWrapper::sl_wfx_msg_t();
uuid_t custom_service = { RSI_BLE_MATTER_CUSTOM_SERVICE_UUID };
custom_service.size = RSI_BLE_MATTER_CUSTOM_SERVICE_SIZE;
custom_service.val.val16 = RSI_BLE_MATTER_CUSTOM_SERVICE_VALUE_16;
Expand Down

0 comments on commit 980c798

Please sign in to comment.