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

write_flag blocks in main #1

Open
lb4ever opened this issue Jun 1, 2016 · 1 comment
Open

write_flag blocks in main #1

lb4ever opened this issue Jun 1, 2016 · 1 comment

Comments

@lb4ever
Copy link

lb4ever commented Jun 1, 2016

Hi,
I have tested the FDS part of this code on nrf51/SDK11.
I found it needs the volatile keyword to write_flag declaration in order to work, otherwise the flag is raised in the my_fds_evt_handler interrupt callback but the main will remain block in the flag test.
Hope this help.

Regards,
Bruno

@hubuhubu
Copy link
Owner

hubuhubu commented Jun 1, 2016

Hi Bruno,

You are right, volatile needed for the flag. Will update. Thanks for pointing out.

Regards,
Hung

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants