altoslib: Add TeleMega-v4 adxl375 config to AltosConfigData
authorKeith Packard <keithp@keithp.com>
Wed, 26 Feb 2020 05:42:29 +0000 (21:42 -0800)
committerKeith Packard <keithp@keithp.com>
Wed, 26 Feb 2020 05:43:28 +0000 (21:43 -0800)
Needed for idle monitor to work correctly

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

index a97b996fa89800ba1000791196d933817ff32bc1..105d3ea50ac1b43eab55998d7be6eadc407e1f18 100644 (file)
@@ -592,6 +592,8 @@ public class AltosConfigData {
                                return true;
                        if (product.startsWith("TeleMetrum-v3"))
                                return true;
+                       if (product.startsWith("TeleMega-v4"))
+                               return true;
                }
                throw new AltosUnknownProduct(product);
        }
@@ -602,6 +604,8 @@ public class AltosConfigData {
                                return AltosAdxl375.X_AXIS;
                        if (product.startsWith("TeleMetrum-v3"))
                                return AltosAdxl375.X_AXIS;
+                       if (product.startsWith("TeleMega-v4"))
+                               return AltosAdxl375.X_AXIS;
                }
                throw new AltosUnknownProduct(product);
        }