Skip to content

Commit 4d3a4ea

Browse files
thedjnKdkalowsk
authored andcommitted
mgmt: mcumgr: grp: img_mgmt: Fix misplaced #endif
Fixes a misplaced endif which wrongly excluded functions Signed-off-by: Jamie McCrae <[email protected]> (cherry picked from commit 5437ded)
1 parent 9c63873 commit 4d3a4ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ static bool img_mgmt_reset_zse(struct smp_streamer *ctxt)
138138

139139
return zcbor_map_start_encode(zse, CONFIG_MCUMGR_SMP_CBOR_MAX_MAIN_MAP_ENTRIES);
140140
}
141+
#endif
141142

142143
#if defined(CONFIG_MCUMGR_GRP_IMG_TOO_LARGE_SYSBUILD)
143144
static bool img_mgmt_slot_max_size(size_t *area_sizes, zcbor_state_t *zse)
@@ -178,7 +179,6 @@ static bool img_mgmt_slot_max_size(size_t *area_sizes, zcbor_state_t *zse)
178179
return ok;
179180
}
180181
#endif
181-
#endif
182182

183183
/**
184184
* Finds the TLVs in the specified image slot, if any.

0 commit comments

Comments
 (0)