altos: minor type in comment about accel correction
authorKeith Packard <keithp@keithp.com>
Tue, 9 Aug 2011 00:46:04 +0000 (17:46 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 9 Aug 2011 00:46:04 +0000 (17:46 -0700)
Kurt Roeckx found a typo in the equations describing how the
accelerometer is corrected by the 5V reference measurement.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/ao_sample.c

index 88ba58c5e9349d28e5912dbcadff4eea5baea887..b2b8e9f63ff662385054b6a904797f38e6c77ce9 100644 (file)
@@ -139,7 +139,7 @@ ao_sample(void)
                 *
                 *                      ao_sample_accel       32767
                 *                    = ------------ *  ------------
-                *                         32737        ao_accel_ref
+                *                         32767        ao_accel_ref
                 *
                 * Multiply through by 32767:
                 *