Skip to content

Commit

Permalink
Bluetooth: Mesh: fix model id in time shell client
Browse files Browse the repository at this point in the history
Commit fixes model id in time model shell client.

Signed-off-by: Aleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
  • Loading branch information
alxelax authored and nordicjm committed Aug 12, 2024
1 parent 6d766d8 commit 8e9c3a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subsys/bluetooth/mesh/shell/shell_time_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ static int cmd_role_set(const struct shell *shell, size_t argc, char *argv[])

static int cmd_instance_get_all(const struct shell *shell, size_t argc, char *argv[])
{
return shell_model_instances_get_all(shell, BT_MESH_MODEL_ID_SCHEDULER_CLI);
return shell_model_instances_get_all(shell, BT_MESH_MODEL_ID_TIME_CLI);
}

static int cmd_instance_set(const struct shell *shell, size_t argc, char *argv[])
Expand All @@ -229,7 +229,7 @@ static int cmd_instance_set(const struct shell *shell, size_t argc, char *argv[]
return err;
}

return shell_model_instance_set(shell, &mod, BT_MESH_MODEL_ID_SCHEDULER_CLI, elem_idx);
return shell_model_instance_set(shell, &mod, BT_MESH_MODEL_ID_TIME_CLI, elem_idx);
}

SHELL_STATIC_SUBCMD_SET_CREATE(instance_cmds,
Expand Down

0 comments on commit 8e9c3a2

Please sign in to comment.