HidLibrary
HidLibrary copied to clipboard
ReadReport() returns empty data
The ReadReport function is intermittently returning an empty data buffer.
if (device.WriteReport(report, 100) == true) { HidReport report = device.ReadReport(500); if (report.ReadStatus == HidDeviceData.ReadStatus.Success) { // do stuff with report.Data array } }
The issue I'm having is that the array report.Data is sometimes all zeros when it shouldnt be. I have verified this with a USB protocol analyzer. Is this a timing issue? should I put in a delay after my write command before I do a read?
This should have been fixed by #100, the proper fix is to switch to HidSharp library instead ;)