altosui: Make libaltos recognise new USB ids
authorKeith Packard <keithp@keithp.com>
Wed, 27 Jun 2012 05:20:50 +0000 (22:20 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 27 Jun 2012 05:20:50 +0000 (22:20 -0700)
libaltos has a small range of 'AltusMetrum' products to avoid opening
other devices. We've got more IDs, so open up the range.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/libaltos/libaltos.c

index 48e00a4415d4bd034f33bd45710035a561d69fe9..1cc27cbee6e42040a287f85851cc179559edc6ae 100644 (file)
 #define USB_VENDOR_FSF                 0xfffe
 #define USB_VENDOR_ALTUSMETRUM         USB_VENDOR_FSF
 #define USB_PRODUCT_ALTUSMETRUM                0x000a
-#define USB_PRODUCT_TELEMETRUM         0x000b
-#define USB_PRODUCT_TELEDONGLE         0x000c
-#define USB_PRODUCT_TELETERRA          0x000d
-#define USB_PRODUCT_TELEBT             0x000e
 #define USB_PRODUCT_ALTUSMETRUM_MIN    0x000a
-#define USB_PRODUCT_ALTUSMETRUM_MAX    0x0013
+#define USB_PRODUCT_ALTUSMETRUM_MAX    0x00ff
 
 #define USB_IS_ALTUSMETRUM(v,p)        ((v) == USB_VENDOR_ALTUSMETRUM && \
                (USB_PRODUCT_ALTUSMETRUM_MIN <= (p) && \