Jinjinov/Usb.Events

After instantiating the class, the list of enumerated devices is empty

maskimthedog opened this issue · 1 comments

When devices are enumerated in the UsbEventWatcher.Linux.c file, EnumerateDevices() calls ProcessDevice() which calls GetDeviceInfo() which expects action to be set to either "add" or "remove" in order to call the appropriate callback function to either add or remove a device from the list kept in the C# class. However, no action is set when enumerating on when a hot plug event occurs, so the list will not be popluated.

Fixed with 6d2d6ff