Updated Write output
This commit is contained in:
@@ -34,7 +34,7 @@ namespace EonaCat.HID.Example
|
||||
Console.WriteLine($"Removed Device --> VID: {e.Device.VendorId:X4}, PID: {e.Device.ProductId:X4}");
|
||||
};
|
||||
|
||||
RefreshDevices();
|
||||
RefreshDevicesAsync();
|
||||
|
||||
if (!_deviceList.Any())
|
||||
{
|
||||
@@ -83,9 +83,9 @@ namespace EonaCat.HID.Example
|
||||
}
|
||||
}
|
||||
|
||||
static void RefreshDevices(ushort? vendorId = null, ushort? productId = null)
|
||||
static async Task RefreshDevicesAsync(ushort? vendorId = null, ushort? productId = null)
|
||||
{
|
||||
_deviceList = _deviceManager.Enumerate(vendorId, productId);
|
||||
_deviceList = await _deviceManager.EnumerateAsync(vendorId, productId).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
static void DisplayDevices()
|
||||
|
Reference in New Issue
Block a user