summaryrefslogtreecommitdiff
path: root/altoslib
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-08-22 00:58:14 -0700
committerKeith Packard <keithp@keithp.com>2018-08-22 01:01:46 -0700
commit22005da598921ef6fe1a7f1bb5e56e41f44fe12f (patch)
treefc355f66ca7275bdd520e5e3a643b7768c2c3ca8 /altoslib
parent75420fecbc76ab718661718ada249673e139a29d (diff)
altosuilib: Don't show radio parameter when reflashing radioless devices
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib')
-rw-r--r--altoslib/AltosLib.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/altoslib/AltosLib.java b/altoslib/AltosLib.java
index 4bb46346..254448d0 100644
--- a/altoslib/AltosLib.java
+++ b/altoslib/AltosLib.java
@@ -180,6 +180,10 @@ public class AltosLib {
return device_type == product_telemega || device_type == product_easymega;
}
+ public static boolean has_radio(int device_type) {
+ return device_type != product_easymini && device_type != product_easymega;
+ }
+
public static boolean has_gps(int device_type) {
return device_type == product_telemetrum ||
device_type == product_telemega ||