Skip to content

Commit 2e0d9ed

Browse files
tomchyjhedberg
authored andcommitted
mgmt: Add missing CONFIG_ prefixes
Fix the incorrect usage of Kconfig symbols and revert back the default behavior to allow for non-active slot confirmation. Signed-off-by: Tomasz Chyrowicz <[email protected]>
1 parent df18487 commit 2e0d9ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

subsys/mgmt/mcumgr/grp/img_mgmt/src/img_mgmt_state.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ int img_mgmt_set_next_boot_slot(int slot, bool confirm)
685685
* verified to actually be bootable, a new policy was introduced,
686686
* that applies to both active and inactive images.
687687
*/
688-
#ifndef MCUMGR_GRP_IMG_ALLOW_CONFIRM_NON_ACTIVE_SLOT
688+
#ifndef CONFIG_MCUMGR_GRP_IMG_ALLOW_CONFIRM_NON_ACTIVE_SLOT
689689
if (confirm && slot != active_slot) {
690690
return IMG_MGMT_ERR_IMAGE_CONFIRMATION_DENIED;
691691
}
@@ -751,7 +751,7 @@ int img_mgmt_set_next_boot_slot(int slot, bool confirm)
751751
return IMG_MGMT_ERR_IMAGE_SETTING_TEST_TO_ACTIVE_DENIED;
752752
}
753753

754-
#ifndef MCUMGR_GRP_IMG_ALLOW_CONFIRM_NON_ACTIVE_SLOT
754+
#ifndef CONFIG_MCUMGR_GRP_IMG_ALLOW_CONFIRM_NON_ACTIVE_SLOT
755755
if (slot != active_slot && confirm) {
756756
return IMG_MGMT_ERR_IMAGE_CONFIRMATION_DENIED;
757757
}

0 commit comments

Comments
 (0)