altosui: Match against basestations when determining remote
authorKeith Packard <keithp@keithp.com>
Fri, 23 Oct 2020 23:12:36 +0000 (16:12 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 23 Oct 2020 23:12:36 +0000 (16:12 -0700)
These two cases were matching against !altimeters instead, which isn't
true for EasyMotor or EasyTimer.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosIdleMonitorUI.java
altosui/AltosIgniteUI.java

index 50994bb27293d55c71e3af9b5311339a49b4ffc6..ba894c71885663a4a2962c719718c73f25c2a369 100644 (file)
@@ -209,7 +209,7 @@ public class AltosIdleMonitorUI extends AltosUIFrame implements AltosFlightDispl
 
                device = AltosDeviceUIDialog.show(in_owner, Altos.product_any);
                remote = false;
-               if (!device.matchProduct(Altos.product_altimeter))
+               if (device.matchProduct(Altos.product_basestation))
                        remote = true;
 
                serial = device.getSerial();
index 8256722a513269405ece3db08e16b5c7d8c0a5ca..9f2f15dab9fc05fd42e27ce3cf74579dba14ad94 100644 (file)
@@ -127,7 +127,7 @@ public class AltosIgniteUI
                public void run () {
                        try {
                                ignite = new AltosIgnite(link,
-                                                        !device.matchProduct(Altos.product_altimeter));
+                                                        device.matchProduct(Altos.product_basestation));
 
                        } catch (Exception e) {
                                send_exception(e);