mgmt: mcumgr: grp: img_mgmt: Fix misplaced #endif

Fixes a misplaced endif which wrongly excluded functions

Signed-off-by: Jamie McCrae <spam@helper3000.net>
This commit is contained in:
Jamie McCrae 2024-11-27 19:19:35 +00:00 committed by Alberto Escolar
commit 5437ded36c

View file

@ -138,6 +138,7 @@ static bool img_mgmt_reset_zse(struct smp_streamer *ctxt)
return zcbor_map_start_encode(zse, CONFIG_MCUMGR_SMP_CBOR_MAX_MAIN_MAP_ENTRIES);
}
#endif
#if defined(CONFIG_MCUMGR_GRP_IMG_TOO_LARGE_SYSBUILD)
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)
return ok;
}
#endif
#endif
/**
* Finds the TLVs in the specified image slot, if any.