<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-&gt;descriptor.idVendor &gt; 0 &amp;&amp;&nbsp; (dev-&gt;descriptor.idVendor &amp; match-&gt;vendor_id) == match-&gt;vendor_id)<br clear="all"><br>The problem I&#39;m having is this. If all the 1s in the descriptor.idVendor match the 1s in the vendor_id I&#39;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>