Device.Net icon indicating copy to clipboard operation
Device.Net copied to clipboard

UWP Usb Factory Picks up wrong device

Open MelbourneDeveloper opened this issue 4 years ago • 1 comments

https://github.com/MelbourneDeveloper/Device.Net/blob/334a3c74d7a8fdce3dee4531d097e5ddb9549f47/src/Device.Net.UnitTests/IntegrationTests.cs#L130

It picks up : \?\USB#VID_0483&PID_DF11#00000008FFFF#{dee824ef-729b-4a0e-9c14-b7117d33a817}

This is the winusb one. The factory should filter by class guide at the AQS level, and filter out anything unwanted later.

MelbourneDeveloper avatar Jan 09 '21 07:01 MelbourneDeveloper

A unit test to stop this from happening in future would be nice.

MelbourneDeveloper avatar Jan 09 '21 07:01 MelbourneDeveloper