altoslib: Set up adxl375 for TM v3.0 in idle mode
authorKeith Packard <keithp@keithp.com>
Tue, 26 Nov 2019 02:15:16 +0000 (18:15 -0800)
committerKeith Packard <keithp@keithp.com>
Tue, 26 Nov 2019 02:15:16 +0000 (18:15 -0800)
Need to select axis and polarity for each adxl375 product.

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

index 040accd62ea945e94a04d1336d7f6a1c7c565224..04129c44d456d901d7449fd3d505a521aded2471 100644 (file)
@@ -589,6 +589,8 @@ public class AltosConfigData {
                if (product != null) {
                        if (product.startsWith("EasyMega-v2"))
                                return true;
+                       if (product.startsWith("TeleMetrum-v3"))
+                               return true;
                }
                throw new AltosUnknownProduct(product);
        }
@@ -597,6 +599,8 @@ public class AltosConfigData {
                if (product != null) {
                        if (product.startsWith("EasyMega-v2"))
                                return AltosAdxl375.X_AXIS;
+                       if (product.startsWith("TeleMetrum-v3"))
+                               return AltosAdxl375.X_AXIS;
                }
                throw new AltosUnknownProduct(product);
        }