-
Notifications
You must be signed in to change notification settings - Fork 207
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
Simplify LogOverflowCounter increment logic #1448
Comments
@skliper - Unless I'm misreading the logic here, most of the code in the Is this intentional? Executing that block with the |
No behavior change intended. I think the code review comment was suggesting something like the following pseudocode:
|
Yes but again that is the issue I see - I'm wondering whether it's intentional or not.
Note the That's why I'm wondering whether the rest of the code (to add the event data to the log etc.) is actually supposed to occur in the case of Hopefully this makes sense. |
@thnkslprpt - Good catch! Definitely |
Cool no worries - hopefully the PR makes it a little clearer for future maintenance 😅 |
…-logic Fix #1448, Simplify and clarify EVS_AddLog logic
Is your feature request related to a problem? Please describe.
The CFE_EVS_Global.EVS_LogPtr->LogOverflowCounter gets incremented in two locations and is done based on the LogFullFlag:
cFE/modules/evs/fsw/src/cfe_evs_log.c
Lines 52 to 64 in c8b5e00
Describe the solution you'd like
Pull up higher and change the if/else statement to:
if(CFE_EVS_Global.EVS_LogPtr->LogMode != CFE_EVS_LogMode_DISCARD)
Describe alternatives you've considered
None
Additional context
Code review
Requester Info
Jacob Hageman - NASA/GSFC
The text was updated successfully, but these errors were encountered: