Skip to content

Commit

Permalink
bluetooth: samples: mesh: remove uri info prints in dfu sample
Browse files Browse the repository at this point in the history
Aligne dfu sample with:
zephyrproject-rtos/zephyr#61389
bt_mesh_dfu_slot no longer has 'uri' param.

Signed-off-by: Alperen Şener <alperen.sener@nordicsemi.no>
  • Loading branch information
m-alperen-sener authored and de-nordic committed Oct 5, 2023
1 parent d87f3af commit 97558cb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions samples/bluetooth/mesh/dfu/distributor/src/dfu_dist.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,13 @@ static void slot_info_print(const struct bt_mesh_dfu_slot *slot, const uint8_t *
{
char fwid[2 * CONFIG_BT_MESH_DFU_FWID_MAXLEN + 1];
char metadata[2 * CONFIG_BT_MESH_DFU_METADATA_MAXLEN + 1];
char uri[CONFIG_BT_MESH_DFU_URI_MAXLEN + 1];
size_t len;

len = bin2hex(slot->fwid, slot->fwid_len, fwid, sizeof(fwid));
fwid[len] = '\0';
len = bin2hex(slot->metadata, slot->metadata_len, metadata,
sizeof(metadata));
metadata[len] = '\0';
memcpy(uri, slot->uri, slot->uri_len);
uri[slot->uri_len] = '\0';

if (idx != NULL) {
printk("Slot %u:\n", *idx);
Expand All @@ -31,7 +28,6 @@ static void slot_info_print(const struct bt_mesh_dfu_slot *slot, const uint8_t *
printk("\tSize: %u bytes\n", slot->size);
printk("\tFWID: %s\n", fwid);
printk("\tMetadata: %s\n", metadata);
printk("\tURI: %s\n", uri);
}

static int dfd_srv_recv(struct bt_mesh_dfd_srv *srv,
Expand Down

0 comments on commit 97558cb

Please sign in to comment.