nRF52-fds-example icon indicating copy to clipboard operation
nRF52-fds-example copied to clipboard

write_flag blocks in main

Open lb4ever opened this issue 8 years ago • 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

lb4ever avatar Jun 01 '16 09:06 lb4ever

Hi Bruno,

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

Regards, Hung

hubuhubu avatar Jun 01 '16 12:06 hubuhubu