Updated Write output

This commit is contained in:
Jeroen Saey
2025-07-28 13:52:56 +02:00
parent fe283384af
commit 19e713eb21
8 changed files with 619 additions and 650 deletions

View File

@@ -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()