File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
tests/subsys/dfu/img_util/src Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1313#define SLOT0_PARTITION slot0_partition
1414#define SLOT1_PARTITION slot1_partition
1515
16- #define PARTITION_IS_RUNNING_APP_PARTITION (label ) \
17- DT_SAME_NODE(PARTITION_NODE_MTD(DT_CHOSEN(zephyr_code_partition)), \
18- PARTITION_MTD(label)) && \
19- (PARTITION_OFFSET(label) <= CONFIG_FLASH_LOAD_OFFSET && \
20- PARTITION_OFFSET(label) + PARTITION_SIZE(label) > CONFIG_FLASH_LOAD_OFFSET)
16+ #define PARTITION_IS_RUNNING_APP_PARTITION (label ) \
17+ DT_SAME_NODE(DT_MEM_FROM_PARTITION(DT_CHOSEN(zephyr_code_partition)), \
18+ DT_MEM_FROM_PARTITION(DT_NODELABEL(label)))
2119
2220#if PARTITION_IS_RUNNING_APP_PARTITION (slot0_partition )
2321#define UPLOAD_PARTITION_ID PARTITION_ID(SLOT1_PARTITION)
You can’t perform that action at this time.
0 commit comments