HidLibrary
HidLibrary copied to clipboard
Inserted/Removed events in HidDevice.cs
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(); }