Skip to content

Commit f4a592f

Browse files
PavelVPVjhedberg
authored andcommitted
Bluetooth: Mesh: Don't reset mod pointer
Don't reset values set in init callback as it is called only once by bt_mesh_init call. The reset callback is called on every node reset. Signed-off-by: Pavel Vasilyev <[email protected]>
1 parent 65f029e commit f4a592f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

subsys/bluetooth/mesh/rpr_srv.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,6 @@ static void rpr_srv_reset(struct bt_mesh_model *mod)
13371337
atomic_clear(srv.flags);
13381338
srv.link.dev = NULL;
13391339
srv.scan.dev = NULL;
1340-
srv.mod = NULL;
13411340
}
13421341

13431342
const struct bt_mesh_model_cb _bt_mesh_rpr_srv_cb = {

0 commit comments

Comments
 (0)