aboutsummaryrefslogtreecommitdiff
path: root/pwm.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2015-01-27 10:05:10 +0100
committerLars-Dominik Braun <lars@6xq.net>2015-01-29 11:10:28 +0100
commit9528470d8389840618275814c30e4f64a9e3efa7 (patch)
tree27d9cf2fe745a517a45053de9c53a7d45a0307c4 /pwm.c
parent2c40f4a0e5c9e9bda8d3b59553abf01abe97c5cd (diff)
downloadhourglass-9528470d8389840618275814c30e4f64a9e3efa7.tar.gz
hourglass-9528470d8389840618275814c30e4f64a9e3efa7.tar.bz2
hourglass-9528470d8389840618275814c30e4f64a9e3efa7.zip
accel: Fix shake detection, again
Only two peaks are required. Use int16 to avoid overflow. Check sign before registering shake in other direction.
Diffstat (limited to 'pwm.c')
0 files changed, 0 insertions, 0 deletions