We are developing a process to send data by detecting acceleration and interrupting acceleration.
gpio_init();
{
NRF_LOG_FLUSH();
APP_ERROR_CHECK(err_code);
nrf_delay_ms(1000);
}
static void in_pin_handler(nrf_drv_gpiote_pin_t pin, nrf_gpiote_polarity_t action)
{
uint8_t ret;
NRF_LOG_FLUSH();
NRF_LOG_INFO("--- INT disabled");
accel_int_detect = true;
}
NRF_LOG_INFO("Motion detected");
NRF_LOG_FLUSH();
}
void gpio_init(void)
{
ret_code_t err_code;
{
err_code = nrf_drv_gpiote_init();
APP_ERROR_CHECK(err_code);
}
APP_ERROR_CHECK(err_code);
}
When checking in SEGGER debug mode,
---- while start .----
Is displayed twice and then it becomes SLEEP.
sd_app_evt_wait ();
Is SLEEP such a thing like that?
B.
In this state, when I made it work, it got in SLEEP state with sd_app_evt_wait ();
After several hours the power has been turned off.
If you operate with the acceleration detection part commented, it will operate normally after several hours.
Will it be turned off?
Thank you.