From 3322bdce10f3eb168fee21dda9dff439fdeeb054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Kopy=C5=9Bci=C5=84ski?= Date: Mon, 27 Mar 2023 13:21:12 +0200 Subject: [PATCH] Bluetooth: Mesh: fix blob_cli.c build with Clang MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There should be logic OR, not bitwise OR in update_missing_chunks. Signed-off-by: Krzysztof Kopyściński --- subsys/bluetooth/mesh/blob_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/mesh/blob_cli.c b/subsys/bluetooth/mesh/blob_cli.c index abebdb71989..5beb7b404a0 100644 --- a/subsys/bluetooth/mesh/blob_cli.c +++ b/subsys/bluetooth/mesh/blob_cli.c @@ -210,7 +210,7 @@ static void update_missing_chunks(struct bt_mesh_blob_cli *cli) } for (size_t idx = 0; idx < cli->block.chunk_count; idx++) { - bool missing = blob_chunk_missing_get(cli->block.missing, idx) | + bool missing = blob_chunk_missing_get(cli->block.missing, idx) || blob_chunk_missing_get(target->pull->missing, idx); blob_chunk_missing_set(cli->block.missing, idx, missing); }