Commit 5437ded3 authored by Jamie McCrae's avatar Jamie McCrae Committed by Alberto Escolar
Browse files

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



Fixes a misplaced endif which wrongly excluded functions

Signed-off-by: default avatarJamie McCrae <spam@helper3000.net>
parent 7271000f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.