hubuhubu/nRF52-fds-example

write_flag blocks in main

Opened this issue · 1 comments

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

Hi Bruno,

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

Regards,
Hung