Hello all,
I'm using the Nordic SDK 14.2 BSP button handler. I have a push, release, and long push event on a single button. These are working as expected -
Except when the device goes to sleep. I have a push-hold that does the following:
1. Turns off LCD
2. Turns off BLE advertising
3. Turns off a monitoring device
Then, the main loop sends the processor back to sleep as usual via sd_app_evt_wait().
When it is sleeping in this condition, a button hold (2 seconds) wakes the processor back up and it starts BLE advertising again.
If it sleeps long enough (several minutes), the button hold does not work properly. It triggers a long hold immediately upon pressing the button.
Any ideas? I checked whether sd_app_evt_wait() is ever waking up in the "sleep" state and it is not. Perhaps app_timer is elapsing or not restarting properly?
Thanks!
John