diff options
author | Keith Packard <keithp@keithp.com> | 2012-06-17 19:01:24 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-06-17 19:01:24 -0700 |
commit | 4cb46b8a84a0dd5b8fcb479d7aa5157480e1bc67 (patch) | |
tree | 38e7d3b5ef12ce623b905f747bb451375b56d887 /altosui/AltosUSBDevice.java | |
parent | 55747ce210d7d80d5b4fdaaf9dc7ee0f7bc8b0a3 (diff) |
altosui: Add rudimentary MM support to altosui
Decoded the MM sensor packets as if they were TM packets.
Add the USB ids.
Add class of 'altimeter' devices and match those instead of just
telemetrum as appropriate.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosUSBDevice.java')
-rw-r--r-- | altosui/AltosUSBDevice.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/altosui/AltosUSBDevice.java b/altosui/AltosUSBDevice.java index b11a3934..ed5f8307 100644 --- a/altosui/AltosUSBDevice.java +++ b/altosui/AltosUSBDevice.java @@ -71,7 +71,12 @@ public class AltosUSBDevice extends altos_device implements AltosDevice { if (want_product == Altos.product_basestation) return matchProduct(Altos.product_teledongle) || matchProduct(Altos.product_teleterra) || - matchProduct(Altos.product_telebt); + matchProduct(Altos.product_telebt) || + matchProduct(Altos.product_megadongle); + + if (want_product == Altos.product_altimeter) + return matchProduct(Altos.product_telemetrum) || + matchProduct(Altos.product_megametrum); int have_product = getProduct(); |