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

Softdevice Not Disabled

Hi,

I am using the following snippet in my application. it is working fine sometimes but the other times it's not coming out of the while loop.

can anybody point out the problem?

while(nrf_sdh_is_enabled())
{
//ble_deinit();
err_code = nrf_sdh_disable_request();
APP_ERROR_CHECK(err_code);
nrf_delay_ms(5);
testVar12 ++;
}

err_code = nrf_sdh_enable_request();
APP_ERROR_CHECK(err_code);

Related