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

ftm example: clear FTM_FAILURE_BIT too (IDFGH-6094) #7773

Closed

Conversation

crackwitz
Copy link
Contributor

Once some failure with FTM occurred, the FTM_FAILURE_BIT was set forever and caused xEventGroupWaitBits to "fall through" right away, dumping the previous session's report (if the success bit was set by the previous session), before the current session could even finish.

All bits need to be cleared (and "handled") if they were set. Instead of explicitly clearing the respective flag after the test, I chose having xEventGroupWaitBits clear the flags itself (xClearOnExit) atomically.

@CLAassistant
Copy link

CLAassistant commented Oct 25, 2021

CLA assistant check
All committers have signed the CLA.

@espressif-bot espressif-bot added the Status: Opened Issue is new label Oct 25, 2021
@github-actions github-actions bot changed the title ftm example: clear FTM_FAILURE_BIT too ftm example: clear FTM_FAILURE_BIT too (IDFGH-6094) Oct 25, 2021
@Alvin1Zhang
Copy link
Collaborator

Thanks for your contribution.

@nachiketkukade
Copy link
Collaborator

nachiketkukade commented Oct 27, 2021

@crackwitz , thanks, the change looks good to me. Does it resolve your issue #7702 ?

@crackwitz
Copy link
Contributor Author

crackwitz commented Oct 27, 2021

No, those are entirely unrelated issues. This patch does not address #7702. This patch addresses (solves) the issue described earlier in this pull request.

@nachiketkukade
Copy link
Collaborator

Ok, got it. I'll be looking into that issue separately.

@crackwitz crackwitz deleted the ftm-example-clear-failure-bit branch December 8, 2021 11:31
@crackwitz
Copy link
Contributor Author

Thanks for the merge!

@espressif-bot espressif-bot added Resolution: Done Issue is done internally Status: Done Issue is done internally and removed Status: Opened Issue is new labels Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants