Checklist
Describe the bug
Based on the comment:
|
/** |
|
* @brief Number of packets to process per ingest cycle |
|
*/ |
|
#define CI_LAB_MAX_INGEST_PKTS 10 |
... CI_LAB_ReadUpLink() will execute one time more than expected (due to the <= in the for condition):
|
void CI_LAB_ReadUpLink(void) |
|
{ |
|
int i; |
|
int32 OsStatus; |
|
|
|
CFE_Status_t CfeStatus; |
|
CFE_SB_Buffer_t *SBBufPtr; |
|
|
|
for (i = 0; i <= CI_LAB_MAX_INGEST_PKTS; i++) |
Expected behavior
Execute exactly as many times as expected - if starting at 0, will need to change this to =, rather <=.
Reporter Info
Avi Weiss @thnkslprpt
Checklist
Describe the bug
Based on the comment:
ci_lab/config/default_ci_lab_internal_cfg.h
Lines 43 to 46 in 8c43b9e
...
CI_LAB_ReadUpLink()will execute one time more than expected (due to the<=in theforcondition):ci_lab/fsw/src/ci_lab_app.c
Lines 213 to 221 in 8c43b9e
Expected behavior
Execute exactly as many times as expected - if starting at
0, will need to change this to=, rather<=.Reporter Info
Avi Weiss @thnkslprpt