altos: Declare cc1111 accel_ref as unsigned so the math works 1.0.9.6
authorKeith Packard <keithp@keithp.com>
Fri, 29 Jun 2012 00:43:36 +0000 (17:43 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 29 Jun 2012 00:43:36 +0000 (17:43 -0700)
commitedbc5d27c8c2936b59ff5289276d9198b501ebc8
tree6a39f81f2f701775c4b7d35c816a3a7051ad1caa
parentccf64117662fc800a07b3a25e52255b80f8b5eaf
altos: Declare cc1111 accel_ref as unsigned so the math works

If accel_ref is signed, then the careful shifting and dividing dance
necessary to correct for changes in the relationship between the 5V
and 3.3V supplies always generates zero.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/cc1111/ao_arch.h