HidLibrary icon indicating copy to clipboard operation
HidLibrary copied to clipboard

ReadReport() returns empty data

Open jvvong opened this issue 9 years ago • 1 comments

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?

jvvong avatar Dec 03 '16 01:12 jvvong

This should have been fixed by #100, the proper fix is to switch to HidSharp library instead ;)

benedekkupper avatar Feb 02 '22 09:02 benedekkupper