Skip to content

Commit

Permalink
Bluetooth: Mesh: Remove Redundant temp_get Wrapper in Light Temp SRV
Browse files Browse the repository at this point in the history
Eliminated the unnecessary wrapper function for temp_get within the Light Temp SRV module.

Signed-off-by: Ilija Vorontsov <ilija.vorontsov@loytec.com>
  • Loading branch information
IlijaVorontsov committed Jan 14, 2025
1 parent ca5eb04 commit fdadecb
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions subsys/bluetooth/mesh/light_temp_srv.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,6 @@ static void encode_status(struct net_buf_simple *buf,
}
}

static void temp_get(struct bt_mesh_light_temp_srv *srv,
struct bt_mesh_msg_ctx *ctx,
struct bt_mesh_light_temp_status *status)
{
struct bt_mesh_light_temp_status temp;

srv->handlers->get(srv, ctx, &temp);

status->current = temp.current;
status->target = temp.target;
status->remaining_time = temp.remaining_time;
}

static int temp_set(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx,
struct net_buf_simple *buf, bool ack)
{
Expand Down

0 comments on commit fdadecb

Please sign in to comment.