From: Keith Packard Date: Fri, 23 Oct 2020 23:12:36 +0000 (-0700) Subject: altosui: Match against basestations when determining remote X-Git-Tag: 1.9.7~1^2~41 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=a9014be707c4325b55e0f2797796e7c96aea1e03 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 --- 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);