Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added verbose fix for failing to match SEED_STUDIOS vendor ID

  • Loading branch information...
commit 9be44120a493a0c25407d553b32e5f7a4cd97d70 1 parent 4e0dbcd
Far McKon authored haveahennessy committed
Showing with 19 additions and 3 deletions.
  1. +19 −3 drivers/bmi/pims/bugduino/bmi_bugduino.c
View
22 drivers/bmi/pims/bugduino/bmi_bugduino.c
@@ -59,15 +59,31 @@ static struct bmi_bugduino bmi_bugduino_collection[4];
static int major;
static struct bmi_device_id duino_table[] = {
- //TRICKY: this can have a BUG_LABS or A SEED_STUDIO vendor as a valid id, just match device.
+ //HACK: maching SEED_STUDIO vendor is failing, this verbose
+ //workaround works. TODO: cleanup and simplify
{
+ .match_flags = BMI_DEVICE_ID_MATCH_PRODUCT,
+ .vendor = BMI_VENDOR_BUG_LABS, //VENDOR_SEED_STUDIO is also valid
+ .product = BMI_PRODUCT_BUGDUINO,
+ .revision = BMI_ANY,
+ },
+{
.match_flags = BMI_DEVICE_ID_MATCH_VENDOR | BMI_DEVICE_ID_MATCH_PRODUCT,
.vendor = BMI_VENDOR_BUG_LABS,
- //.match_flags = BMI_DEVICE_ID_MATCH_PRODUCT,
- //.vendor = BMI_VENDOR_BUG_LABS,
+ .product = BMI_PRODUCT_BUGDUINO,
+ .revision = BMI_ANY,
+ },{
+ .match_flags = BMI_DEVICE_ID_MATCH_VENDOR | BMI_DEVICE_ID_MATCH_PRODUCT,
+ .vendor = BMI_VENDOR_SEED_STUDIO,
.product = BMI_PRODUCT_BUGDUINO,
.revision = BMI_ANY,
},
+/* {
+ .match_flags = BMI_DEVICE_ID_MATCH_VENDOR | BMI_DEVICE_ID_MATCH_PRODUCT,
+ .vendor = BMI_VENDOR_SEED_STUDIO,
+ .product = BMI_PRODUCT_BUGDUINO,
+ .revision = BMI_ANY,
+ },*/
{ 0,},
};
Please sign in to comment.
Something went wrong with that request. Please try again.