HidLibrary icon indicating copy to clipboard operation
HidLibrary copied to clipboard

Inserted/Removed events in HidDevice.cs

Open gnatyukv opened this issue 8 years ago • 0 comments

Consider this block of code in the HidDevice.cs source file: private void DeviceEventMonitorInserted() { if (IsOpen) OpenDevice(); // the clause should be negated, i.e. !IsOpen if (Inserted != null) Inserted(); } private void DeviceEventMonitorRemoved() { if (IsOpen) CloseDevice(); if (Removed != null) Removed(); }

gnatyukv avatar Jun 18 '17 18:06 gnatyukv