Skip to content

Commit 7df751e

Browse files
committed
[nrf fromtree] mcumgr/img_mgmt: Fix CONFIG_MCUBOOT_BOOTLOADER_NO_DOWNGRADE
Usage of the Kconfig, in code, has been missing CONFIG_, so selected or not it did nothing. Signed-off-by: Dominik Ermel <[email protected]> (cherry picked from commit 1ec7116)
1 parent b8f9cb9 commit 7df751e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/mgmt/mcumgr/grp/os_mgmt/src/os_mgmt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ os_mgmt_bootloader_info(struct smp_streamer *ctxt)
472472

473473
ok = zcbor_tstr_put_lit(zse, "mode") &&
474474
zcbor_int32_put(zse, BOOTLOADER_MODE);
475-
#if IS_ENABLED(MCUBOOT_BOOTLOADER_NO_DOWNGRADE)
475+
#if IS_ENABLED(CONFIG_MCUBOOT_BOOTLOADER_NO_DOWNGRADE)
476476
ok = zcbor_tstr_put_lit(zse, "no-downgrade") &&
477477
zcbor_bool_encode(zse, true);
478478
#endif

0 commit comments

Comments
 (0)