This eliminates a depedency on updates to the system helper library,
which means we don't have to provide a new library on all platforms
just to support a new USB id.
Signed-off-by: Keith Packard <keithp@keithp.com>
}
static int usb_vendor_altusmetrum() {
}
static int usb_vendor_altusmetrum() {
- if (load_library())
- return libaltosConstants.USB_VENDOR_ALTUSMETRUM;
- return 0x000a;
+ load_library();
+ return 0xfffe;
}
static int usb_product_altusmetrum() {
}
static int usb_product_altusmetrum() {
- if (load_library())
- return libaltosConstants.USB_PRODUCT_ALTUSMETRUM;
return 0x000a;
}
static int usb_product_altusmetrum_min() {
return 0x000a;
}
static int usb_product_altusmetrum_min() {
- if (load_library())
- return libaltosConstants.USB_PRODUCT_ALTUSMETRUM_MIN;
return 0x000a;
}
static int usb_product_altusmetrum_max() {
return 0x000a;
}
static int usb_product_altusmetrum_max() {
- if (load_library())
- return libaltosConstants.USB_PRODUCT_ALTUSMETRUM_MAX;
- return 0x000d;
+ load_library();
+ return 0x0013;
}
static int usb_product_telemetrum() {
}
static int usb_product_telemetrum() {
- if (load_library())
- return libaltosConstants.USB_PRODUCT_TELEMETRUM;
return 0x000b;
}
static int usb_product_teledongle() {
return 0x000b;
}
static int usb_product_teledongle() {
- if (load_library())
- return libaltosConstants.USB_PRODUCT_TELEDONGLE;
return 0x000c;
}
static int usb_product_teleterra() {
return 0x000c;
}
static int usb_product_teleterra() {
- if (load_library())
- return libaltosConstants.USB_PRODUCT_TELETERRA;
return 0x000d;
}
static int usb_product_telebt() {
return 0x000d;
}
static int usb_product_telebt() {
- if (load_library())
- return libaltosConstants.USB_PRODUCT_TELEBT;
public final static int product_basestation = 0x10000 + 1;
static String bt_product_telebt() {
public final static int product_basestation = 0x10000 + 1;
static String bt_product_telebt() {
- if (load_library())
- return libaltosConstants.BLUETOOTH_PRODUCT_TELEBT;