Skip to content

Commit 17ca238

Browse files
AudifazHaavardRei
authored andcommitted
[nrf fromtree] Bluetooth: Mesh: Use dfd_phase_set() in dfu_suspended()
Currently, dfu_suspended() sets the phase SUSPENDED directly in the structure, bypassing the dfd_phase_set() function. This prevents the phase change callback in the bt_mesh_dfd_srv_cb structure from receiving the SUSPENDED event. Signed-off-by: Emilio Aguila Escalante <[email protected]> (cherry picked from commit dda9ba6) Signed-off-by: Håvard Reierstad <[email protected]>
1 parent e3dc304 commit 17ca238

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/mesh/dfd_srv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ static void dfu_suspended(struct bt_mesh_dfu_cli *cli)
801801
struct bt_mesh_dfd_srv *srv =
802802
CONTAINER_OF(cli, struct bt_mesh_dfd_srv, dfu);
803803

804-
srv->phase = BT_MESH_DFD_PHASE_TRANSFER_SUSPENDED;
804+
dfd_phase_set(srv, BT_MESH_DFD_PHASE_TRANSFER_SUSPENDED);
805805
}
806806

807807
static void dfu_ended(struct bt_mesh_dfu_cli *cli,

0 commit comments

Comments
 (0)