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

ShakeWake: Fixed instant wake after sleep issue in certain positions #1691

Closed ic-27 closed 1 year ago

ic-27 commented 1 year ago

Added lastX var to track the previous x acceleration for correct calculation of speed. Closes #927.

FintasticMan commented 1 year ago

This looks good to me, but seeing as @geekbozu wrote the shake wake algorithm, I'd like to hear what they have to say.

github-actions[bot] commented 1 year ago
Build size and comparison to main: Section Size Difference
text 406636B 0B
data 940B 0B
bss 53576B 8B
Riksu9000 commented 1 year ago

The last commit should be squashed with the first one, also the comment doesn't seem useful or accurate, so you may remove it in another commit.