samples: mesh: nrf52: removed bug in Gen. onoff unack handler
In Gen. OnOff Unack handler, gen_onoff_publisher(model) was misplaced previously & now it is set to proper location. Signed-off-by: Vikrant More <vikrant8051@gmail.com>
This commit is contained in:
parent
0cfaf3d75f
commit
0c29ca367d
1 changed files with 1 additions and 1 deletions
|
|
@ -195,8 +195,8 @@ static void gen_onoff_set_unack(struct bt_mesh_model *model,
|
||||||
|
|
||||||
if (state->target_onoff != state->onoff) {
|
if (state->target_onoff != state->onoff) {
|
||||||
onoff_tt_values(state, tt, delay);
|
onoff_tt_values(state, tt, delay);
|
||||||
gen_onoff_publisher(model);
|
|
||||||
} else {
|
} else {
|
||||||
|
gen_onoff_publisher(model);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue