InfiniTimeOrg / InfiniTime

Firmware for Pinetime smartwatch written in C++ and based on FreeRTOS
GNU General Public License v3.0
2.64k stars 907 forks source link

Power optimization - Enable HRS3300 (heart rate sensor) sleep mode. #1756

Closed JF002 closed 1 year ago

JF002 commented 1 year ago

Put the HRS3300 to sleep mode when InfiniTime is going to sleep. This change reduces the power consumption by 130µA when the heart rate sensor is disabled.

github-actions[bot] commented 1 year ago
Build size and comparison to main: Section Size Difference
text 407676B 16B
data 940B 0B
bss 54136B 0B
JF002 commented 1 year ago

I'm not able to verify the changes, but I don't see any issues.

It works fine on my side, power usage is reduced and the HR sensor still works as expected :)