Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1338, check status of call to CFE_ES_CDS_CachePreload #1373

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion modules/es/fsw/src/cfe_es_cds.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,9 +529,11 @@ int32 CFE_ES_ClearCDS(void)
size_t RemainSize;
int32 Status;

Status = CFE_SUCCESS;

/* Clear the CDS to ensure everything is gone */
/* Create a block of zeros to write to the CDS */
Status = CFE_ES_CDS_CachePreload(&CDS->Cache, NULL, 0, sizeof(CDS->Cache.Data.Zero));
CFE_ES_CDS_CachePreload(&CDS->Cache, NULL, 0, sizeof(CDS->Cache.Data.Zero));

/* While there is space to write another block of zeros, then do so */
while (CDS->Cache.Offset < CDS->TotalSize)
Expand Down