- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
LE stack does not switch to sleep mode if the fine timer's timeout is set to 12 ms even when the fine timer is stopped.
The current is around 1mA what makes me think that chip is still only in Pause mode.
Solved! Go to Solution.
- Labels:
-
Sleep Modes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello madmax
From the developers:
Please see if the following code snippet resolves your issue:
#include "devicelpm.h"
UINT32 app_queryPowersave(LowPowerModePollType type, UINT32 context)
{
if (type == LOW_POWER_MODE_POLL_TYPE_SLEEP)
{
// Always allow sleep and let the FW decide actual sleep time.
return ~0;
}
// Never allow deep sleep/hid-off.
return 0;
}
void application_create(void)
{
// Do all other application initialization here.
// Override default implementation of the app queriable:
bleprofile_queryPowersaveCb = app_queryPowersave;
}
Thanks
JT