mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 04:34:31 +02:00
BLE Mesh: Fix compilation for NimBLE-1.3.0 upgrade by typecasting adv data to void
This commit is contained in:
@@ -391,7 +391,7 @@ static int disc_cb(struct ble_gap_event *event, void *arg)
|
|||||||
struct net_buf_simple buf = {0};
|
struct net_buf_simple buf = {0};
|
||||||
|
|
||||||
desc = &event->disc;
|
desc = &event->disc;
|
||||||
net_buf_simple_init_with_data(&buf, desc->data, desc->length_data);
|
net_buf_simple_init_with_data(&buf, (void *)desc->data, desc->length_data);
|
||||||
|
|
||||||
if (bt_mesh_scan_dev_found_cb) {
|
if (bt_mesh_scan_dev_found_cb) {
|
||||||
bt_mesh_scan_dev_found_cb((bt_mesh_addr_t *)&desc->addr, desc->rssi, desc->event_type, &buf);
|
bt_mesh_scan_dev_found_cb((bt_mesh_addr_t *)&desc->addr, desc->rssi, desc->event_type, &buf);
|
||||||
|
Reference in New Issue
Block a user