This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Noticed small bug in nrf connect SDK

Hi,

As we know, new is a keyword to allocate memory in cpp because of this reason I am  facing small issue when I am compiled my code in cpp as shown in below.

/v1.5.0/nrf/include/bluetooth/mesh/light_xyl_srv.h:120:45: error: expected ',' or '...' before 'new'
120 | const struct bt_mesh_light_xy_range *new);
| ^~~
/v1.5.0/nrf/include/bluetooth/mesh/light_xyl_srv.h:132:41: error: expected ',' or '...' before 'new'
132 | const struct bt_mesh_light_xy *new);
|

I have changed variable name New instead of new and compiled code .

could you please change the variable name to avoid this kind of issue.

Regards,

Srinivas Rao.

Related