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:
Vikrant More 2018-11-28 12:05:32 +05:30 committed by Johan Hedberg
parent 0cfaf3d75f
commit 0c29ca367d

View file

@ -195,8 +195,8 @@ static void gen_onoff_set_unack(struct bt_mesh_model *model,
if (state->target_onoff != state->onoff) {
onoff_tt_values(state, tt, delay);
gen_onoff_publisher(model);
} else {
gen_onoff_publisher(model);
return;
}