MelbourneDeveloper / Device.Net

A C# cross platform connected device framework
MIT License
628 stars 121 forks source link

"Write-Only" devices not supported #198

Open jefffhaynes opened 3 years ago

jefffhaynes commented 3 years ago

In the case that a HID device does not support INPUT, IDevice.InitializeAsync throws an ArgumentOutOfRangeException from here, as readBufferSize will be zero.

MelbourneDeveloper commented 3 years ago

I've been meaning to fix that one up. Windows or UWP?

I was thinking about injecting a func in the constructor to get the handle...

Prs welcome