altoslib: Fix accel value flipping for TM v3.0
authorKeith Packard <keithp@keithp.com>
Wed, 19 May 2021 05:37:01 +0000 (22:37 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 19 May 2021 05:53:51 +0000 (22:53 -0700)
commit362f11fffb63c5c4d4e2ccfc59c0e6ae83a55d01
tree4566b89fa3175e8946a4ab7708085fedb306c819
parenta575eebbf87243c3a314929a2469db5bac0c7b42
altoslib: Fix accel value flipping for TM v3.0

TM v3.0 uses the same log file format value as TM v2.0 but has a
different accelerometer, which requires a different function for
inverting the raw values. Detect v2.0 devices and use the old function
for them while using the new function for all others.

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosConfigData.java