Open JinZhuXing opened 5 years ago
Many Thanks @JinZhuXing I got my Device started correctly (without the yellow exclamation mark) after some debugging at startup before the process stop.
I'd like to add a small contribution:
Before the end of the method: CBiometricDevice::CreateUsbIoTargets add a condition: The variable m_pIUsbInterruptPipe must me not null because is used later in the code.
Also the next code is harcoded for usb devices that have only one interface (My device has two):
hr = pIUsbTargetDevice->RetrieveUsbInterface(0, &pIUsbInterface);
Here is a snnipet where I implemented a for loop to iterate through the number of interfaces and initialize all three variables, bingo!
I think biometrics driver project have some code errors. Please see my change and fix it. Thanks.![image](https://user-images.githubusercontent.com/15034343/52396348-96abca00-2aec-11e9-9298-294bd40f4483.png)