Skip to content

Commit 3a6cfe3

Browse files
alxelaxfabiobaltieri
authored andcommitted
bluetooth: mesh: remove wrong state warning
Commit removes `Wrong state` warning from some DFU API. This information has value only for debugging. No any value for application to generate warning on the regular basis. Signed-off-by: Aleksandr Khromykh <[email protected]>
1 parent 71ca7c9 commit 3a6cfe3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

subsys/bluetooth/mesh/dfu_srv.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ const struct bt_mesh_blob_srv_cb _bt_mesh_dfu_srv_blob_cb = {
561561
void bt_mesh_dfu_srv_verified(struct bt_mesh_dfu_srv *srv)
562562
{
563563
if (srv->update.phase != BT_MESH_DFU_PHASE_VERIFY) {
564-
LOG_WRN("Wrong state");
564+
LOG_DBG("Wrong state");
565565
return;
566566
}
567567

@@ -574,7 +574,7 @@ void bt_mesh_dfu_srv_verified(struct bt_mesh_dfu_srv *srv)
574574
void bt_mesh_dfu_srv_rejected(struct bt_mesh_dfu_srv *srv)
575575
{
576576
if (srv->update.phase != BT_MESH_DFU_PHASE_VERIFY) {
577-
LOG_WRN("Wrong state");
577+
LOG_DBG("Wrong state");
578578
return;
579579
}
580580

@@ -587,7 +587,7 @@ void bt_mesh_dfu_srv_rejected(struct bt_mesh_dfu_srv *srv)
587587
void bt_mesh_dfu_srv_cancel(struct bt_mesh_dfu_srv *srv)
588588
{
589589
if (srv->update.phase == BT_MESH_DFU_PHASE_IDLE) {
590-
LOG_WRN("Wrong state");
590+
LOG_DBG("Wrong state");
591591
return;
592592
}
593593

@@ -597,7 +597,7 @@ void bt_mesh_dfu_srv_cancel(struct bt_mesh_dfu_srv *srv)
597597
void bt_mesh_dfu_srv_applied(struct bt_mesh_dfu_srv *srv)
598598
{
599599
if (srv->update.phase != BT_MESH_DFU_PHASE_APPLYING) {
600-
LOG_WRN("Wrong state");
600+
LOG_DBG("Wrong state");
601601
return;
602602
}
603603

0 commit comments

Comments
 (0)