I've had my Bangle 2 draining it's battery in about 1-2 days the last couple of weeks.
With the help of the logging feature in Power Manager (thanks @halemmerich!) I've identified a "deferred function call" that's likely to blame, in my understanding. Power Manager says the function in question is responsible for 99% of deferred function calls.
Now, I've tried to identify where the code is located, but haven't found it. I've searched the Espruino organization on github. I've downloaded a backup of my watch and used neovim + telescope "live_grep" feature to locate. Both without success.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi,
I've had my Bangle 2 draining it's battery in about 1-2 days the last couple of weeks.
With the help of the logging feature in Power Manager (thanks @halemmerich!) I've identified a "deferred function call" that's likely to blame, in my understanding. Power Manager says the function in question is responsible for 99% of deferred function calls.
Now, I've tried to identify where the code is located, but haven't found it. I've searched the Espruino organization on github. I've downloaded a backup of my watch and used neovim + telescope "live_grep" feature to locate. Both without success.
Here's the log entry from
powermanager.def.json
:If anyone recognize the function snippet from the log above it would be a huge help. Since it seems minimized it's proven tricky to me...
A screenshot from Power Manager's "download data from app" app loader screen is attached.
Steps I've not yet taken:
EDIT, installed apps:
1 Attachment