<div dir="ltr">Hi all, good work on this project..<br><br>I was wondering if anyone knows why the hid_compare_usb_device function does a bitwise AND of the vendor and product IDs? For example, the product ID is matched with the following code..<br>
<br>if (dev->descriptor.idVendor > 0 && (dev->descriptor.idVendor & match->vendor_id) == match->vendor_id)<br clear="all"><br>The problem I'm having is this. If all the 1s in the descriptor.idVendor match the 1s in the vendor_id I'm looking for, it will register as a match when in fact they are different IDs. I can work around this by taking advantage of the custom match function but wanted to run this by somebody.<br>
<br>Thanks.<br><br>-- <br><br>Arnold<br>
</div>