From a9014be707c4325b55e0f2797796e7c96aea1e03 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 23 Oct 2020 16:12:36 -0700 Subject: [PATCH] altosui: Match against basestations when determining remote These two cases were matching against !altimeters instead, which isn't true for EasyMotor or EasyTimer. Signed-off-by: Keith Packard --- altosui/AltosIdleMonitorUI.java | 2 +- altosui/AltosIgniteUI.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/altosui/AltosIdleMonitorUI.java b/altosui/AltosIdleMonitorUI.java index 50994bb2..ba894c71 100644 --- a/altosui/AltosIdleMonitorUI.java +++ b/altosui/AltosIdleMonitorUI.java @@ -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(); diff --git a/altosui/AltosIgniteUI.java b/altosui/AltosIgniteUI.java index 8256722a..9f2f15da 100644 --- a/altosui/AltosIgniteUI.java +++ b/altosui/AltosIgniteUI.java @@ -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); -- 2.30.2