Skip to content

Commit

Permalink
mgmt: mcumgr: grp: img_mgmt: Fix misplaced #endif
Browse files Browse the repository at this point in the history
Fixes a misplaced endif which wrongly excluded functions

Signed-off-by: Jamie McCrae <[email protected]>
(cherry picked from commit 5437ded)
  • Loading branch information
thedjnK authored and github-actions[bot] committed Nov 28, 2024
1 parent 371e3a6 commit c30efad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/mgmt/mcumgr/grp/img_mgmt/src/img_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit c30efad

Please sign in to comment.