@@ -95,7 +95,7 @@ static void pwr_set(struct bt_mesh_plvl_srv *srv, struct bt_mesh_msg_ctx *ctx,
9595
9696 l_ctx -> target = set -> power_lvl ;
9797 if (set -> transition ) {
98- l_ctx -> remaining = set -> transition -> time + set -> transition -> delay ;
98+ l_ctx -> remaining = set -> transition -> time ;
9999 } else {
100100 l_ctx -> remaining = 0 ;
101101 }
@@ -433,7 +433,7 @@ static void light_set(struct bt_mesh_lightness_srv *srv,
433433
434434 l_ctx -> target = set -> lvl ;
435435 if (set -> transition ) {
436- l_ctx -> remaining = set -> transition -> time + set -> transition -> delay ;
436+ l_ctx -> remaining = set -> transition -> time ;
437437 } else {
438438 l_ctx -> remaining = 0 ;
439439 }
@@ -541,7 +541,7 @@ static void light_temp_set(struct bt_mesh_light_temp_srv *srv,
541541 l_ctx -> target .delta_uv = set -> params .delta_uv ;
542542 if (set -> transition ) {
543543 l_ctx -> remaining =
544- set -> transition -> time + set -> transition -> delay ;
544+ set -> transition -> time ;
545545 } else {
546546 l_ctx -> remaining = 0 ;
547547 }
@@ -632,7 +632,7 @@ static void light_ctl_lightness_set(struct bt_mesh_lightness_srv *srv,
632632 l_ctx -> target = set -> lvl ;
633633 if (set -> transition ) {
634634 l_ctx -> remaining =
635- set -> transition -> time + set -> transition -> delay ;
635+ set -> transition -> time ;
636636 } else {
637637 l_ctx -> remaining = 0 ;
638638 }
@@ -794,7 +794,7 @@ static void hue_set(struct bt_mesh_light_hue_srv *srv,
794794
795795 l_ctx -> target = set -> lvl ;
796796 if (set -> transition ) {
797- l_ctx -> remaining = set -> transition -> time + set -> transition -> delay ;
797+ l_ctx -> remaining = set -> transition -> time ;
798798 } else {
799799 l_ctx -> remaining = 0 ;
800800 }
@@ -893,7 +893,7 @@ static void light_sat_set(struct bt_mesh_light_sat_srv *srv,
893893
894894 l_ctx -> target = set -> lvl ;
895895 if (set -> transition ) {
896- l_ctx -> remaining = set -> transition -> time + set -> transition -> delay ;
896+ l_ctx -> remaining = set -> transition -> time ;
897897 } else {
898898 l_ctx -> remaining = 0 ;
899899 }
@@ -1012,7 +1012,7 @@ static void light_xy_set(struct bt_mesh_light_xyl_srv *srv,
10121012 l_ctx -> target .x = set -> params .x ;
10131013 l_ctx -> target .y = set -> params .y ;
10141014 if (set -> transition ) {
1015- l_ctx -> remaining = set -> transition -> time + set -> transition -> delay ;
1015+ l_ctx -> remaining = set -> transition -> time ;
10161016 } else {
10171017 l_ctx -> remaining = 0 ;
10181018 }
@@ -1098,7 +1098,7 @@ static void light_xyl_hsl_lightness_set(struct bt_mesh_lightness_srv *srv,
10981098
10991099 l_ctx -> target = set -> lvl ;
11001100 if (set -> transition ) {
1101- l_ctx -> remaining = set -> transition -> time + set -> transition -> delay ;
1101+ l_ctx -> remaining = set -> transition -> time ;
11021102 } else {
11031103 l_ctx -> remaining = 0 ;
11041104 }
0 commit comments