This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Using __WFI instead of sd_app_evt_wait in main loop of mesh example

Hello,

The mesh lightswitch on/off example only calls 'sd_app_evt_wait' in the main loop.

I'd like to use '__WFI' instead. (Im combining some code with mesh, and i'd like to keep that code unchanged)

I did some testing and the example remains functional. I have not tested power usage.

Is this okay or are there some complications I am missing?

    while (true)
    {
        //(void) sd_app_evt_wait(); 
        __WFI(); //@TEST
    }

Parents Reply Children
No Data
Related