We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 399d9ab commit 72737aeCopy full SHA for 72737ae
samples/nrf_compress/mcuboot_update/src/hook.c
@@ -40,9 +40,9 @@ static void slot_output_handler(struct k_work *work)
40
rc = img_mgmt_read_info(SECONDARY_SLOT, NULL, NULL, &slot_flags);
41
42
if (!rc) {
43
- slot_flags &= IMAGE_F_COMPRESSED_LZMA2 && IMAGE_F_COMPRESSED_ARM_THUMB_FLT;
+ slot_flags &= IMAGE_F_COMPRESSED_LZMA2 | IMAGE_F_COMPRESSED_ARM_THUMB_FLT;
44
45
- if (slot_flags == (IMAGE_F_COMPRESSED_LZMA2 && IMAGE_F_COMPRESSED_ARM_THUMB_FLT)) {
+ if (slot_flags == (IMAGE_F_COMPRESSED_LZMA2 | IMAGE_F_COMPRESSED_ARM_THUMB_FLT)) {
46
LOG_INF(
47
"Secondary slot image is LZMA2 compressed with ARM thumb filter applied");
48
} else if (slot_flags & IMAGE_F_COMPRESSED_LZMA2) {
0 commit comments