You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To Reproduce
Set SC_LAST_RTS_WITH_EVENTS to SC_NUMBER_OF_RTS as documented in the config header, fails at compile time
Note if set to SC_NUMBER_OF_RTS - 1, it doesn't look like it will report the last RTS events
Expected behavior
Setting SC_LAST_RTS_WITH_EVENTS to SC_NUMBER_OF_RTS should send event for all RTS's
Checklist (Please check before submitting)
Describe the bug
SC_LAST_RTS_WITH_EVENTS
is documented like an index (1 based), but converted from 0 based in tests.Documented as 1 based:
SC/config/default_sc_internal_cfg.h
Lines 139 to 142 in 29f7bad
Verified as 1 based:
SC/fsw/src/sc_verify.h
Lines 108 to 114 in 29f7bad
Compared against 1 based number here:
SC/fsw/src/sc_rtsrq.c
Line 111 in 29f7bad
Correctly converted to an index here:
SC/unit-test/sc_state_tests.c
Line 453 in 29f7bad
Questionable use here since CFE_MSG_Init expects a size:
SC/unit-test/sc_state_tests.c
Line 471 in 29f7bad
BROKEN references here, used as 0 based:
SC/unit-test/sc_state_tests.c
Line 499 in 29f7bad
SC/unit-test/sc_state_tests.c
Line 586 in 29f7bad
These tests will probably fail if
SC_LAST_RTS_WITH_EVENTS
set toSC_NUMBER_OF_RTS - 1
, should work correctly if 1 based.SC/unit-test/sc_state_tests.c
Lines 788 to 794 in 29f7bad
To Reproduce
Set
SC_LAST_RTS_WITH_EVENTS
toSC_NUMBER_OF_RTS
as documented in the config header, fails at compile timeNote if set to
SC_NUMBER_OF_RTS - 1
, it doesn't look like it will report the last RTS eventsExpected behavior
Setting SC_LAST_RTS_WITH_EVENTS to SC_NUMBER_OF_RTS should send event for all RTS's
Code snips
See above
System observed on:
all
Additional context
None
Reporter Info
Jacob Hageman/NASA GSFC
Ping @jphickey
The text was updated successfully, but these errors were encountered: